[media] dvb_usb_v2: fix power_ctrl() callback error handling

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Antti Palosaari 2012-06-21 02:57:34 -03:00 committed by Mauro Carvalho Chehab
parent 12042b0593
commit 18cfe03d32
1 changed files with 2 additions and 1 deletions

View File

@ -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); pr_debug("%s: power control=%d\n", __func__, onoff);
if (d->props->power_ctrl) { if (d->props->power_ctrl) {
ret = d->props->power_ctrl(d, onoff); ret = d->props->power_ctrl(d, onoff);
goto err; if (ret < 0)
goto err;
} }
} }