Commit 41d44a81 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] af9035: add missing error check

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 77c5ff2d
...@@ -400,6 +400,8 @@ static int af9035_download_firmware(struct usb_device *udev, ...@@ -400,6 +400,8 @@ static int af9035_download_firmware(struct usb_device *udev,
/* download begin packet */ /* download begin packet */
req.cmd = CMD_FW_DL_BEGIN; req.cmd = CMD_FW_DL_BEGIN;
ret = af9035_ctrl_msg(udev, &req); ret = af9035_ctrl_msg(udev, &req);
if (ret < 0)
goto err;
/* download firmware packet(s) */ /* download firmware packet(s) */
for (j = HDR_SIZE + hdr_data_len; j > 0; j -= MAX_DATA) { for (j = HDR_SIZE + hdr_data_len; j > 0; j -= MAX_DATA) {
......
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