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-01-24 22:50:12 -08:00
2008-02-06 10:41:01 -08:00
2008-01-24 22:50:12 -08:00
2008-01-24 22:50:12 -08:00
2006-06-21 12:40:49 -07:00
2008-01-24 22:50:12 -08:00