diff options
Diffstat (limited to 'fs/ecryptfs/messaging.c')
| -rw-r--r-- | fs/ecryptfs/messaging.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c index 8d7a577ae49..49ff8ea08f1 100644 --- a/fs/ecryptfs/messaging.c +++ b/fs/ecryptfs/messaging.c @@ -97,8 +97,7 @@ static void ecryptfs_msg_ctx_free_to_alloc(struct ecryptfs_msg_ctx *msg_ctx)  void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx)  {  	list_move(&(msg_ctx->node), &ecryptfs_msg_ctx_free_list); -	if (msg_ctx->msg) -		kfree(msg_ctx->msg); +	kfree(msg_ctx->msg);  	msg_ctx->msg = NULL;  	msg_ctx->state = ECRYPTFS_MSG_CTX_STATE_FREE;  } @@ -283,7 +282,7 @@ ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type,  	int rc;  	rc = ecryptfs_find_daemon_by_euid(&daemon); -	if (rc || !daemon) { +	if (rc) {  		rc = -ENOTCONN;  		goto out;  	}  |