From: Tyler Hicks Date: Sun, 15 Mar 2009 19:17:01 +0000 (-0500) Subject: eCryptfs: NULL pointer dereference in ecryptfs_send_miscdev() X-Git-Tag: v2.6.30-rc4~55^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ea34d19963781d05eb12f9b31bd4f70d61ec16;p=pandora-kernel.git eCryptfs: NULL pointer dereference in ecryptfs_send_miscdev() If data is NULL, msg_ctx->msg is set to NULL and then dereferenced afterwards. ecryptfs_send_raw_message() is the only place that ecryptfs_send_miscdev() is called with data being NULL, but the only caller of that function (ecryptfs_process_helo()) is never called. In short, there is currently no way to trigger the NULL pointer dereference. This patch removes the two unused functions and modifies ecryptfs_send_miscdev() to remove the NULL dereferences. Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed