diff options
| author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-02-18 19:04:25 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-22 02:27:07 +0300 |
| commit | 0763446429e46fd973f507f79900b95eb8aae2e4 (patch) | |
| tree | 9b6b0811c94e59e1e90e0f6a636e2e86b8918c01 /scripts | |
| parent | 7199677d2e919edc75d1fb8856c98cd0c1bbcfc5 (diff) | |
| download | linux-0763446429e46fd973f507f79900b95eb8aae2e4.tar.xz | |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
