mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
driver core: fix memory leak on one error path in bus_register()
Reported-by: [email protected] Signed-off-by: Jike Song <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c462e8cd57
commit
600c20f34f
1 changed files with 1 additions and 1 deletions
|
|
@ -945,8 +945,8 @@ bus_devices_fail:
|
|||
bus_remove_file(bus, &bus_attr_uevent);
|
||||
bus_uevent_fail:
|
||||
kset_unregister(&bus->p->subsys);
|
||||
kfree(bus->p);
|
||||
out:
|
||||
kfree(bus->p);
|
||||
bus->p = NULL;
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue