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
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
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(-)
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