summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-12-20 19:24:10 +0000
committerPatrick Boettcher <devnull@localhost>2005-12-20 19:24:10 +0000
commit7e385f8261bb2ad4e4129af2504f8c9fe2ec8dfe (patch)
tree4a18e1a9183d55844cd3082b87b2be5c7994e178 /linux/drivers/media/dvb/dvb-usb
parenta6f5aacd1889a2b00fc5fd6a24ddab504358feeb (diff)
downloadmediapointer-dvb-s2-7e385f8261bb2ad4e4129af2504f8c9fe2ec8dfe.tar.gz
mediapointer-dvb-s2-7e385f8261bb2ad4e4129af2504f8c9fe2ec8dfe.tar.bz2
Initialize the dvb-usb-device-pointer to NULL
From: Patrick Boettcher <pb@linuxtv.org> 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>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dvb-usb-init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-init.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-init.c
index 2f9c3638a..2e23060cb 100644
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-init.c
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-init.c
@@ -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;