diff options
author | Antti Palosaari <crope@iki.fi> | 2012-04-01 16:06:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-04-09 19:43:57 +0200 |
commit | 41d44a815a68a2618805c1d670b4ff93091a99d8 (patch) | |
tree | ce010361a30b41ae7ceed0d359ea3f1789cb2ea9 /drivers | |
parent | [media] af9035: reimplement firmware downloader (diff) | |
download | linux-41d44a815a68a2618805c1d670b4ff93091a99d8.tar.xz linux-41d44a815a68a2618805c1d670b4ff93091a99d8.zip |
[media] af9035: add missing error check
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-usb/af9035.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c index 01dee02ff280..dc0a49ac664a 100644 --- a/drivers/media/dvb/dvb-usb/af9035.c +++ b/drivers/media/dvb/dvb-usb/af9035.c @@ -400,6 +400,8 @@ static int af9035_download_firmware(struct usb_device *udev, /* download begin packet */ req.cmd = CMD_FW_DL_BEGIN; ret = af9035_ctrl_msg(udev, &req); + if (ret < 0) + goto err; /* download firmware packet(s) */ for (j = HDR_SIZE + hdr_data_len; j > 0; j -= MAX_DATA) { |