Commit 064b32f8 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Kalle Valo
Browse files

at76c50x-usb: avoid double usb_put_dev() after downloading internal firmware in at76_probe()



There is no need in usb_put_dev() if at76_load_internal_fw() succeed.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8dd37c7c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2481,9 +2481,7 @@ static int at76_probe(struct usb_interface *interface,
			dev_err(&interface->dev,
				"error %d downloading internal firmware\n",
				ret);
			goto exit;
		}
		usb_put_dev(udev);
		goto exit;
	}