aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ecryptfs/messaging.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/messaging.c b/fs/ecryptfs/messaging.c
index e57380e5f6bd..286f10b0363b 100644
--- a/fs/ecryptfs/messaging.c
+++ b/fs/ecryptfs/messaging.c
@@ -434,8 +434,7 @@ void ecryptfs_release_messaging(void)
434 mutex_lock(&ecryptfs_msg_ctx_lists_mux); 434 mutex_lock(&ecryptfs_msg_ctx_lists_mux);
435 for (i = 0; i < ecryptfs_message_buf_len; i++) { 435 for (i = 0; i < ecryptfs_message_buf_len; i++) {
436 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); 436 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux);
437 if (ecryptfs_msg_ctx_arr[i].msg) 437 kfree(ecryptfs_msg_ctx_arr[i].msg);
438 kfree(ecryptfs_msg_ctx_arr[i].msg);
439 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); 438 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux);
440 } 439 }
441 kfree(ecryptfs_msg_ctx_arr); 440 kfree(ecryptfs_msg_ctx_arr);