projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12042b0
)
[media] dvb_usb_v2: fix power_ctrl() callback error handling
author
Antti Palosaari
<crope@iki.fi>
Thu, 21 Jun 2012 05:57:34 +0000
(
02:57
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:38 +0000
(07:56 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb_core.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/dvb_usb_core.c
b/drivers/media/dvb/dvb-usb/dvb_usb_core.c
index 81ee3fc09a481e755168c668feb40e66c18a00a8..93ce02a911893234964f34ddc400db3e52604ac3 100644
(file)
--- a/
drivers/media/dvb/dvb-usb/dvb_usb_core.c
+++ b/
drivers/media/dvb/dvb-usb/dvb_usb_core.c
@@
-455,7
+455,8
@@
int dvb_usbv2_device_power_ctrl(struct dvb_usb_device *d, int onoff)
pr_debug("%s: power control=%d\n", __func__, onoff);
if (d->props->power_ctrl) {
ret = d->props->power_ctrl(d, onoff);
- goto err;
+ if (ret < 0)
+ goto err;
}
}