From: Eric Paris Date: Tue, 12 May 2009 00:47:15 +0000 (-0400) Subject: securityfs: securityfs_remove should handle IS_ERR pointers X-Git-Tag: v2.6.31-rc1~395^2^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93e4c940f51ae06b59c14523c4d55947f9597d6;p=pandora-kernel.git securityfs: securityfs_remove should handle IS_ERR pointers Both of the securityfs users (TPM and IMA) can call securityfs_remove and pass an IS_ERR(dentry) in their failure paths. This patch handles those rather than panicing when it tries to start deferencing some negative memory. Signed-off-by: Eric Paris Signed-off-by: James Morris --- Reading git-diff-tree failed