diff options
author | Levente Kurusa <[email protected]> | 2014-01-30 15:45:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-01-30 16:56:54 -0800 |
commit | 0c692d07842a67d9aa6b8266a80e4ac460a5c1a2 (patch) | |
tree | 8ecdf75687efe387fd47feec6df5b88b5cc48bc0 /tools/perf/scripts/python | |
parent | 54f5968db9e09de8779b5a5174719af51f1da199 (diff) |
drivers/net/phy/mdio_bus.c: call put_device on device_register() failure
It is required to call put_device() if device_register() fails, so that
we give up the last reference to the device. Calling put_device allows
for mdiobus_release to be executed, kfreeing the bus.
Signed-off-by: Levente Kurusa <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: David Daney <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions