driver core: fix device_add error path
commit00ed8e3dda47f8421b11da17e353d7db8c878121
authorDmitriy Monakhov <dmonakhov@sw.ru>
Sun, 11 Mar 2007 12:36:19 +0000 (11 15:36 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:27 +0000 (27 10:57 -0700)
tree61aed6bee2b8f791d0bce8713a3b9132ad4badb4
parentc58b8e4a25a1ba347a0e5d21984c97bd296f1691
driver core: fix device_add error path

 - At the moment we jump here device was't added to
   dev->class->devices list yet.

Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c