diff options
author | Michael Halcrow <mhalcrow@us.ibm.com> | 2007-03-16 13:38:22 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-16 19:25:05 -0700 |
commit | b228b8e5bf96b740a70871c1a248bb65c267f5f2 (patch) | |
tree | 0697a8341e4f8f3cafe770ba76e12bb900ac3880 /include/asm-powerpc/ps3av.h | |
parent | ad28d94abb1313bdf27e196676292c493f92f824 (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 'include/asm-powerpc/ps3av.h')
0 files changed, 0 insertions, 0 deletions