diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-30 15:29:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-02 10:42:45 -0500 |
commit | 50ac64cfc39dad2ba0d8ad553d2d87dfc738cbba (patch) | |
tree | 8de0fca290b069bc9c2dbb07b7ee34a946f131e5 /drivers/rtc/rtc-pl031.c | |
parent | 6919756caaeaa76dc56287252fb656e3c2d9b4e1 (diff) |
net: ethernet: stmmac: dwmac-socfpga: fix use-after-free on probe errors
Make sure to call stmmac_dvr_remove() before returning on late probe
errors so that memory is freed, clocks are disabled, and the netdev is
deregistered before its resources go away.
Fixes: 3c201b5a84ed ("net: stmmac: socfpga: Remove re-registration of
reset controller")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/rtc/rtc-pl031.c')
0 files changed, 0 insertions, 0 deletions