]> err.no Git - linux-2.6/commit
Driver core: fix error by cleanup up symlinks properly
authorJames Simmons <jsimmons@infradead.org>
Wed, 21 Feb 2007 17:44:51 +0000 (17:44 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Feb 2007 22:52:09 +0000 (14:52 -0800)
commit82f0cf9b7c42684c29189ddb6d0bc86eb1137fc4
tree3052eb95a5e6070cbee8a1262952abc48f2eedbe
parent4541ac94d0ea0b00776edd5904ac91dd6d6330f7
Driver core: fix error by cleanup up symlinks properly

When a device fails to register the class symlinks where not cleaned up.
This left a symlink in the /sys/class/"device"/ directory that pointed
to no where. This caused the sysfs_follow_link Oops I reported earlier.
This patch cleanups up the symlink. Please apply. Thank you.

Signed-Off: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c