summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/symlink.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-06-13 20:45:14 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 01:09:03 +0200
commit996b73764e9bb9d5e751fd15b130ba38637d66a8 (patch)
treeb8fe0310d1d37da2c2434d1398c12b5ae82b929f /fs/sysfs/symlink.c
parentsysfs: flatten cleanup paths in sysfs_add_link() and create_dir() (diff)
downloadlinux-996b73764e9bb9d5e751fd15b130ba38637d66a8.tar.xz
linux-996b73764e9bb9d5e751fd15b130ba38637d66a8.zip
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>
Diffstat (limited to 'fs/sysfs/symlink.c')
0 files changed, 0 insertions, 0 deletions