Files
twx-linux/fs
Wenwen Wang d7a5408e4b ecryptfs: fix a memory leak bug in ecryptfs_init_messaging()
commit b4a81b87a4 upstream.

In ecryptfs_init_messaging(), if the allocation for 'ecryptfs_msg_ctx_arr'
fails, the previously allocated 'ecryptfs_daemon_hash' is not deallocated,
leading to a memory leak bug. To fix this issue, free
'ecryptfs_daemon_hash' before returning the error.

Cc: stable@vger.kernel.org
Fixes: 88b4a07e66 ("[PATCH] eCryptfs: Public key transport mechanism")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-28 16:38:44 +01:00
..
…
…
2019-08-06 19:06:51 +02:00
2019-12-13 08:52:23 +01:00
…
2020-02-24 08:34:49 +01:00
2019-12-13 08:52:36 +01:00
2020-02-11 04:34:07 -08:00
…
2019-12-13 08:51:59 +01:00
2020-02-24 08:34:53 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-02-05 14:43:31 +00:00
…
…
…
…
…
…
…
…
…
…
…
…