[PATCH] sysfs: fix problem with duplicate sysfs directories and files
commitc516865cfbac0d862d4888df91793ad1e74ffd58
authorManeesh Soni <maneesh@in.ibm.com>
Thu, 9 Mar 2006 14:10:14 +0000 (9 19:40 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:59 +0000 (20 13:42 -0800)
tree432024125976af3e6c87ae5b9e64b6f1cc291f70
parent22f98c0cd7e003b896ee52ded945081307118745
[PATCH] sysfs: fix problem with duplicate sysfs directories and files

The following patch checks for existing sysfs_dirent before
preparing new one while creating sysfs directories and files.

Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h