]> Pileus Git - ~andy/linux/blobdiff - security/inode.c
Merge branch 'perfcounters-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / security / inode.c
index f3b91bfbe4cb9483ea55e7e64c5c1c52b8c71d0d..f7496c6a022b7c2213f061c17b435bf0328085ed 100644 (file)
@@ -287,7 +287,7 @@ void securityfs_remove(struct dentry *dentry)
 {
        struct dentry *parent;
 
-       if (!dentry)
+       if (!dentry || IS_ERR(dentry))
                return;
 
        parent = dentry->d_parent;