From: Michael Halcrow Date: Fri, 16 Mar 2007 21:38:22 +0000 (-0800) Subject: [PATCH] eCryptfs: fix possible NULL ptr deref in ecryptfs_d_release() X-Git-Tag: v2.6.21-rc5~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b228b8e5bf96b740a70871c1a248bb65c267f5f2;p=pandora-kernel.git [PATCH] eCryptfs: fix possible NULL ptr deref in ecryptfs_d_release() ecryptfs_d_release() first dereferences a pointer (via ecryptfs_dentry_to_lower()) and then afterwards checks to see if the pointer it just dereferenced is NULL (via ecryptfs_dentry_to_private()). This patch moves all of the work done on the dereferenced pointer inside a block governed by the condition that the pointer is non-NULL. Signed-off-by: Michael Halcrow Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed