aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorCorentin Labbe <[email protected]>2017-09-01 11:56:04 +0000
committerDavid S. Miller <[email protected]>2017-09-01 17:26:31 +0000
commit60f786525032432af1b7d9b8935cb12936244ccd (patch)
treeea3186a5c85b0aef63557f9fab44929841df5fd9 /net/tipc/node.c
parentnet: mdio-mux-mmioreg: Can handle 8/16/32 bits registers (diff)
downloadkernel-60f786525032432af1b7d9b8935cb12936244ccd.tar.gz
kernel-60f786525032432af1b7d9b8935cb12936244ccd.zip
net: mdio-mux: fix unbalanced put_device
mdio_mux_uninit() call put_device (unconditionally) because of of_mdio_find_bus() in mdio_mux_init. But of_mdio_find_bus is only called if mux_bus is empty. If mux_bus is set, mdio_mux_uninit will print a "refcount_t: underflow" trace. This patch add a get_device in the other branch of "if (mux_bus)". Signed-off-by: Corentin Labbe <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions