sysfs: Fix oops in sysfs_drop_dentry on x86_64
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 13 Jun 2007 18:45:18 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:07 +0000 (16:09 -0700)
commit9d9307dabb3de8140fb3801bf6eb01f231dbd83d
tree55cecd0eaefe5e3cc89f2aaf8542607f7d43ae8e
parent0c73f18b7d95de8a007039337063a770b5fc8e7a
sysfs: Fix oops in sysfs_drop_dentry on x86_64

Fix oops on x86_64 caused by the dereference of dir in
sysfs_drop_dentry() made before checking if dir is not NULL
(cf. http://marc.info/?l=linux-kernel&m=118151626704924&w=2).

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