Commit b8d35024 authored by Douglas Anderson's avatar Douglas Anderson Committed by David S. Miller

r8152: Release firmware if we have an error in probe

The error handling in rtl8152_probe() is missing a call to release
firmware. Add it in to match what's in the cleanup code in
rtl8152_disconnect().

Fixes: 9370f2d0 ("r8152: support request_firmware for RTL8153")
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarGrant Grundler <grundler@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb8adff9
...@@ -9786,6 +9786,7 @@ static int rtl8152_probe(struct usb_interface *intf, ...@@ -9786,6 +9786,7 @@ static int rtl8152_probe(struct usb_interface *intf,
cancel_delayed_work_sync(&tp->hw_phy_work); cancel_delayed_work_sync(&tp->hw_phy_work);
if (tp->rtl_ops.unload) if (tp->rtl_ops.unload)
tp->rtl_ops.unload(tp); tp->rtl_ops.unload(tp);
rtl8152_release_firmware(tp);
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
out: out:
free_netdev(netdev); free_netdev(netdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment