https://github.com/torvalds/linux
Revision 36676bcbf9f6bcbea9d06e67ee8d04eacde54952 authored by James Bottomley on 27 August 2005, 01:34:17 UTC, committed by Linus Torvalds on 27 August 2005, 02:37:13 UTC
The problem arises if an entity in sysfs is created and removed without
ever having been made completely visible.  In SCSI this is triggered by
removing a device while it's initialising.

The problem appears to be that because it was never made visible in sysfs,
the sysfs dentry has a null d_inode which oopses when a reference is made
to it.  The solution is simply to check d_inode and assume the object was
never made visible (and thus doesn't need deleting) if it's NULL.

(akpm: possibly a stopgap for 2.6.13 scsi problems.  May not be the
long-term fix)

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 657390d
History
Tip revision: 36676bcbf9f6bcbea9d06e67ee8d04eacde54952 authored by James Bottomley on 27 August 2005, 01:34:17 UTC
[PATCH] Fix oops in sysfs_hash_and_remove_file()
Tip revision: 36676bc

README

back to top