From b228b8e5bf96b740a70871c1a248bb65c267f5f2 Mon Sep 17 00:00:00 2001 From: Michael Halcrow Date: Fri, 16 Mar 2007 13:38:22 -0800 Subject: [PATCH] [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-format-patch failed