aboutsummaryrefslogtreecommitdiffstats
path: root/net/nsh/nsh.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2023-05-10 20:00:20 +0000
committerJakub Kicinski <[email protected]>2023-05-12 01:07:14 +0000
commitf816b9829b19394d318e01953aa3b2721bca040d (patch)
tree9267ec78180582eb8ea180d17bd37d45ba08a466 /net/nsh/nsh.c
parentipv6: remove nexthop_fib6_nh_bh() (diff)
downloadkernel-f816b9829b19394d318e01953aa3b2721bca040d.tar.gz
kernel-f816b9829b19394d318e01953aa3b2721bca040d.zip
net: fec: Better handle pm_runtime_get() failing in .remove()
In the (unlikely) event that pm_runtime_get() (disguised as pm_runtime_resume_and_get()) fails, the remove callback returned an error early. The problem with this is that the driver core ignores the error value and continues removing the device. This results in a resource leak. Worse the devm allocated resources are freed and so if a callback of the driver is called later the register mapping is already gone which probably results in a crash. Fixes: a31eda65ba21 ("net: fec: fix clock count mis-match") Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions