summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2012-06-13 21:24:32 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 10:56:32 (GMT)
commitc65bcb95beec39402cb574faa2e17aa1e56c1534 (patch)
treeab120891255577443f6ed780506832011462e28e /drivers/media/dvb
parenta4e7c51edd2e3fea22447ebd8d26c014a68b6a23 (diff)
downloadlinux-fsl-qoriq-c65bcb95beec39402cb574faa2e17aa1e56c1534.tar.xz
[media] dvb_usb_v2: return the download ret in dvb_usb_download_firmware
The first being this patch, no return value from dvb_usb_download_firmware causes system wide dead lock with COLD disconnect as system attempts to continue to warm state. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_init.c b/drivers/media/dvb/dvb-usb/dvb_usb_init.c
index ecc6bd2..0ac1a72 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb_init.c
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_init.c
@@ -62,7 +62,7 @@ static int dvb_usbv2_download_firmware(struct dvb_usb_device *d)
if (ret < 0)
goto err;
- return 0;
+ return ret;
err:
pr_debug("%s: failed=%d\n", __func__, ret);
return ret;