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)
commite46772a6946a7d1f3fbbc1415871851d6651f1d4
tree28c78ec43830de6dba6532ecd8d4c99646eb621b
parent589bf32f09852041fbd3b7ce1a9e703f95c230ba
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