sysfs: fix condition check in sysfs_drop_dentry()
authorTejun Heo <htejun@gmail.com>
Mon, 11 Jun 2007 05:03:27 +0000 (14:03 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Jun 2007 23:08:46 +0000 (16:08 -0700)
commit6aa054aadfea613a437ad0b15d38eca2b963fc0a
treee7fd512672b8f85fe2463ba4ba98bca06ffe6bb1
parentdc351252b33f8fede396d6173dba117bcb933607
sysfs: fix condition check in sysfs_drop_dentry()

The condition check doesn't make much sense as it basically always
succeeds.  This causes NULL dereferencing on certain cases.  It seems
that parentheses are put in the wrong place.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/inode.c