Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330590
b: refs/heads/master
c: 0a86735
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent f910af9 commit d02cb5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e48b2a68617cfb7881e1c5e420e1a992b1e60e89
refs/heads/master: 0a8673569ff92d7dd6c07153696d1975d13a3b99
13 changes: 11 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,18 @@ int dvb_usbv2_device_init_(struct usb_interface *intf,
struct dvb_usb_device *d = NULL;
struct dvb_usb_driver_info *driver_info =
(struct dvb_usb_driver_info *) id->driver_info;
const struct dvb_usb_device_properties *props = driver_info->props;
const struct dvb_usb_device_properties *props;
int ret = -ENOMEM;
bool cold = false;

if (!id->driver_info) {
pr_err("%s: driver_info is null", KBUILD_MODNAME);
ret = -ENODEV;
goto err;
}

props = driver_info->props;

d = kzalloc(sizeof(struct dvb_usb_device), GFP_KERNEL);
if (d == NULL) {
err("no memory for 'struct dvb_usb_device'");
Expand Down Expand Up @@ -326,7 +334,8 @@ int dvb_usbv2_device_init_(struct usb_interface *intf,
err_kfree:
kfree(d->priv);
kfree(d);

err:
pr_debug("%s: failed=%d\n", __func__, ret);
return ret;
}

Expand Down

0 comments on commit d02cb5f

Please sign in to comment.