linux/fs/sysfs
Tejun Heo 996b73764e 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>
2007-07-11 16:09:03 -07:00
..
bin.c sysfs: fix error handling in binattr write() 2007-07-11 16:09:03 -07:00
dir.c sysfs: flatten and fix sysfs_rename_dir() error handling 2007-07-11 16:09:03 -07:00
file.c use simple_read_from_buffer() in fs/ 2007-05-09 12:30:49 -07:00
group.c security: prevent permission checking of file removal via sysfs_remove_group() 2007-04-27 10:57:33 -07:00
inode.c sysfs: fix race condition around sd->s_dentry, take#2 2007-06-12 16:08:47 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: store sysfs inode nrs in s_ino to avoid readdir oopses 2007-06-12 16:08:46 -07:00
symlink.c sysfs: flatten cleanup paths in sysfs_add_link() and create_dir() 2007-07-11 16:09:03 -07:00
sysfs.h sysfs: make sysfs_put() ignore NULL sd 2007-07-11 16:09:03 -07:00