Skip to content

Commit

Permalink
V4L/DVB (3202): Initialize the dvb-usb-device-pointer to NULL
Browse files Browse the repository at this point in the history
- Initialize the the dvb-usb-device-pointer in the -init function to NULL,
to be sure that a dvb-usb-device was really initialized.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 6fe66ba commit 6ff5ef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/dvb/dvb-usb/dvb-usb-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ int dvb_usb_device_init(struct usb_interface *intf, struct dvb_usb_properties

int ret = -ENOMEM,cold=0;

if (du != NULL)
*du = NULL;

if ((desc = dvb_usb_find_device(udev,props,&cold)) == NULL) {
deb_err("something went very wrong, device was not found in current device list - let's see what comes next.\n");
return -ENODEV;
Expand Down

0 comments on commit 6ff5ef2

Please sign in to comment.