sysfs: fix i_mutex locking in sysfs_get_dentry()
authorTejun Heo <htejun@gmail.com>
Mon, 20 Aug 2007 12:36:29 +0000 (21:36 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:07 +0000 (14:51 -0700)
commit253280267a7f1ced0c434fb24b7bef92d7d22628
tree8add8daefa3cf776daf7f042cb9341debafe54f1
parent1359555eb77d240b7c1d7ee75bb07e89e89770e4
sysfs: fix i_mutex locking in sysfs_get_dentry()

lookup_one_len_kern() should be called with the parent's i_mutex
locked.  Fix it.

Spotted by Eric W. Biederman.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c