Skip to content

Commit b8d3502

Browse files
diandersdavem330
authored andcommitted
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: 9370f2d ("r8152: support request_firmware for RTL8153") Signed-off-by: Douglas Anderson <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb8adff commit b8d3502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/usb/r8152.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9786,6 +9786,7 @@ static int rtl8152_probe(struct usb_interface *intf,
97869786
cancel_delayed_work_sync(&tp->hw_phy_work);
97879787
if (tp->rtl_ops.unload)
97889788
tp->rtl_ops.unload(tp);
9789+
rtl8152_release_firmware(tp);
97899790
usb_set_intfdata(intf, NULL);
97909791
out:
97919792
free_netdev(netdev);

0 commit comments

Comments
 (0)