diff options
author | Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> | 2023-11-28 11:04:34 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-11-30 12:59:07 +0300 |
commit | d8eb6ea4b302e7ff78535c205510e359ac10a0bd (patch) | |
tree | f4fb1495cc1a3815a956fa90427e37aae7e4c225 /README | |
parent | 91fdb30ddfdb651509914d3ed0a0302712540fed (diff) | |
download | linux-d8eb6ea4b302e7ff78535c205510e359ac10a0bd.tar.xz |
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: 0d13a1a464a0 ("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>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions