X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Finode.c;h=f7496c6a022b7c2213f061c17b435bf0328085ed;hb=d2aa4550379f92e929af7ed1dd4f55e6a1e331f8;hp=f3b91bfbe4cb9483ea55e7e64c5c1c52b8c71d0d;hpb=f541ae326fa120fa5c57433e4d9a133df212ce41;p=pandora-kernel.git diff --git a/security/inode.c b/security/inode.c index f3b91bfbe4cb..f7496c6a022b 100644 --- a/security/inode.c +++ b/security/inode.c @@ -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;