]> err.no Git - linux-2.6/commit
[PATCH] sysfs: sysfs_remove_dir() needs to invalidate the dentry
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Mar 2006 23:44:26 +0000 (15:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:57 +0000 (13:42 -0800)
commit641e6f30a095f3752ed84fd9d279382f5d3ef4c1
tree59b57c14f9249488ded6814de4512f7f9949289f
parentc4a1745aa09fc110afdefea0e5d025043e348bae
[PATCH] sysfs: sysfs_remove_dir() needs to invalidate the dentry

When calling sysfs_remove_dir() don't allow any further sysfs functions
to work for this kobject anymore.  This fixes a nasty USB cdc-acm oops
on disconnect.

Many thanks to Bob Copeland and Paul Fulghum for taking the time to
track this down.

Cc: Bob Copeland <email@bobcopeland.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Cc: Maneesh Soni <maneesh@in.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/inode.c