commit | 996b73764e9bb9d5e751fd15b130ba38637d66a8 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Thu Jun 14 03:45:14 2007 +0900 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Jul 11 16:09:03 2007 -0700 |
tree | b8fe0310d1d37da2c2434d1398c12b5ae82b929f | |
parent | dfeb9fb0343363aadc3ee00a9347d120bc2a26b1 [diff] |
sysfs: flatten and fix sysfs_rename_dir() error handling Error handling in sysfs_rename_dir() was broken. * When lookup_one_len() fails, 0 is returned. * If parent inode check fails, returns with inode mutex and rename rwsem held. This patch fixes the above bugs and flattens error handling such that it's more readable and easier to modify. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>