[PATCH v3] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-11 Thread Branislav Radocaj
handling of clock rate setting * For completeness of usecase, added arc_emac_probe error handling Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- [1] https://marc.info/?l=linux-netdev=151301239802445=2 --- drivers/net/ethernet/arc/emac_rockchip.c | 10 +++--- 1 file chan

[PATCH v2] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-09 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- Changes since v2: * Improved inconsistent failure handling of clock rate setting * For completeness of u

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)

[PATCH] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-06 Thread Branislav Radocaj
If clk_set_rate() fails, we should disable clk before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Branislav Radocaj <branis...@radocaj.org> --- drivers/net/ethernet/arc/emac_rockchip.c | 7 +-- 1 file changed, 5 insertions