X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=security%2Finode.c;h=f7496c6a022b7c2213f061c17b435bf0328085ed;hb=dbfc985195410dad803c845743c63cd73bd1fe32;hp=f3b91bfbe4cb9483ea55e7e64c5c1c52b8c71d0d;hpb=3e48e656903e9fd8bc805c6a2c4264d7808d315b;p=linux-2.6-block.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;