提交 064b32f8 编写于 作者: A Alexey Khoroshilov 提交者: Kalle Valo

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: NAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 8dd37c7c
...@@ -2481,9 +2481,7 @@ static int at76_probe(struct usb_interface *interface, ...@@ -2481,9 +2481,7 @@ static int at76_probe(struct usb_interface *interface,
dev_err(&interface->dev, dev_err(&interface->dev,
"error %d downloading internal firmware\n", "error %d downloading internal firmware\n",
ret); ret);
goto exit;
} }
usb_put_dev(udev);
goto exit; goto exit;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册