Cornelia Huck c1fe539a7e Driver core: Fix cleanup when failing device_add().
Driver core: Fix cleanup when failing device_add().

 - Don't call cleanup_device_parent() if we didn't call setup_parent().
 - dev->kobj.parent may be NULL when cleanup_device_parent() is called,
   so we need to handle glue_dir == NULL in cleanup_glue_dir().

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-03-04 14:47:05 -08:00
..
2008-02-24 20:03:42 +01:00
2008-02-08 09:22:38 -08:00
2008-02-19 15:52:27 -08:00
2008-03-03 10:47:14 -08:00
2008-02-07 08:42:23 -08:00
2008-02-14 21:13:33 -08:00
2008-02-13 16:21:19 -08:00
2008-03-03 10:47:14 -08:00
2008-03-03 10:47:13 -08:00
2008-02-23 17:12:14 -08:00
2008-02-26 14:12:09 +09:00
2008-02-23 17:12:14 -08:00
2008-02-21 15:27:07 -08:00