]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: arc: fix error handling in emac_rockchip_probe
authorBranislav Radocaj <branislav@radocaj.org>
Wed, 6 Dec 2017 23:07:38 +0000 (00:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 18:51:09 +0000 (13:51 -0500)
commit55c7b1cfde7591033a3b6f580e7d002d3ca9b515
tree28c78ec43830de6dba6532ecd8d4c99646eb621b
parent4a593b862c9512446c616500a21284131815a39a
net: ethernet: arc: fix error handling in emac_rockchip_probe

If clk_set_rate() fails, we should disable clk before return.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Branislav Radocaj <branislav@radocaj.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac_rockchip.c