]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb80c1c9633ef1a29f38bde6b54c72b7a21112bae
treee7fd512672b8f85fe2463ba4ba98bca06ffe6bb1
parent0a264ac5d0fde4cdfa62171aa5d1d70e78beeaa1
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