linux/fs/sysfs
Tejun Heo ae2108ad32 sysfs: make __sysfs_add_one() fail if the parent isn't a directory
Currently the kobject based interface guarantees that a parent
sysfs_dirent is always a directory; however, the planned kernfs
interface will be directly based on sysfs_dirents and the caller may
specify non-directory node as the parent.  Add an explicit check in
__sysfs_add_one() so that such attempts fail with -EINVAL.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-27 13:14:43 -08:00
..
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile sysfs: merge regular and bin file handling 2013-10-05 17:27:40 -07:00
dir.c sysfs: make __sysfs_add_one() fail if the parent isn't a directory 2013-11-27 13:14:43 -08:00
file.c sysfs: use generic_file_llseek() for sysfs_file_operations 2013-11-01 12:13:37 -07:00
group.c sysfs: introduce [__]sysfs_remove() 2013-10-03 16:38:52 -07:00
inode.c sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.c 2013-10-29 15:12:07 -07:00
mount.c sysfs: drop kobj_ns_type handling, take #2 2013-11-27 13:01:03 -08:00
symlink.c sysfs: drop kobj_ns_type handling, take #2 2013-11-27 13:01:03 -08:00
sysfs.h sysfs: drop kobj_ns_type handling, take #2 2013-11-27 13:01:03 -08:00