commit | 0763446429e46fd973f507f79900b95eb8aae2e4 | [log] [tgz] |
---|---|---|
author | Cornelia Huck <cornelia.huck@de.ibm.com> | Mon Feb 18 17:04:25 2008 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Feb 21 15:27:07 2008 -0800 |
tree | 9b6b0811c94e59e1e90e0f6a636e2e86b8918c01 | |
parent | 7199677d2e919edc75d1fb8856c98cd0c1bbcfc5 [diff] |
Driver core: Fix error handling in bus_add_driver(). - If the allocation of ->priv fails, the reference on the bus must be dropped. - If adding the kobject fails, kobject_put must be called to clean things up. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>