diff options
author | 2009-05-11 20:47:15 -0400 | |
---|---|---|
committer | 2009-05-12 11:06:11 +1000 | |
commit | d93e4c940f51ae06b59c14523c4d55947f9597d6 (patch) | |
tree | 2dfe72da55eab4bd12e059f7d9de6f9c37eedbbf /security/security.c | |
parent | IMA: open all files O_LARGEFILE (diff) | |
download | linux-rng-d93e4c940f51ae06b59c14523c4d55947f9597d6.tar.xz linux-rng-d93e4c940f51ae06b59c14523c4d55947f9597d6.zip |
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 <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions