Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: James Morris <[email protected]>
- Loading branch information