Commit d8eb6ea
net: ravb: Check return value of reset_control_deassert()
reset_control_deassert() could return an error. Some devices cannot work
if reset signal de-assert operation fails. To avoid this check the return
code of reset_control_deassert() in ravb_probe() and take proper action.
Along with it, the free_netdev() call from the error path was moved after
reset_control_assert() on its own label (out_free_netdev) to free
netdev in case reset_control_deassert() fails.
Fixes: 0d13a1a ("ravb: Add reset support")
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 91fdb30 commit d8eb6ea
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2654 | 2654 | | |
2655 | 2655 | | |
2656 | 2656 | | |
2657 | | - | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
2658 | 2661 | | |
2659 | 2662 | | |
2660 | 2663 | | |
| |||
2881 | 2884 | | |
2882 | 2885 | | |
2883 | 2886 | | |
2884 | | - | |
2885 | | - | |
2886 | 2887 | | |
2887 | 2888 | | |
2888 | 2889 | | |
| 2890 | + | |
| 2891 | + | |
2889 | 2892 | | |
2890 | 2893 | | |
2891 | 2894 | | |
| |||
0 commit comments