]> Git Repo - linux.git/commit
net: stmmac: Fix clock handling on remove path
authorWong Vee Khee <[email protected]>
Fri, 25 Sep 2020 09:54:06 +0000 (17:54 +0800)
committerDavid S. Miller <[email protected]>
Fri, 25 Sep 2020 23:49:15 +0000 (16:49 -0700)
commitac322f86b56cb99d1c4224c209095aa67647c967
tree6d4a86f818dc6970599d60896b7c64c30d1259e0
parent1dac3b1bc66dc68dbb0c9f43adac71a7d0a0331a
net: stmmac: Fix clock handling on remove path

While unloading the dwmac-intel driver, clk_disable_unprepare() is
being called twice in stmmac_dvr_remove() and
intel_eth_pci_remove(). This causes kernel panic on the second call.

Removing the second call of clk_disable_unprepare() in
intel_eth_pci_remove().

Fixes: 09f012e64e4b ("stmmac: intel: Fix clock handling on error and remove paths")
Cc: Andy Shevchenko <[email protected]>
Reviewed-by: Voon Weifeng <[email protected]>
Signed-off-by: Wong Vee Khee <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
This page took 0.05462 seconds and 4 git commands to generate.