aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/error.c
diff options
context:
space:
mode:
authorMichael Halcrow <mhalcrow@us.ibm.com>2007-03-16 17:38:22 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-16 22:25:05 -0400
commitb228b8e5bf96b740a70871c1a248bb65c267f5f2 (patch)
tree0697a8341e4f8f3cafe770ba76e12bb900ac3880 /fs/9p/error.c
parentad28d94abb1313bdf27e196676292c493f92f824 (diff)
[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 <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/9p/error.c')
0 files changed, 0 insertions, 0 deletions