diff mbox

V4L/DVB: dib0700: Prevent NULL pointer dereference during probe

Message ID 20100926162553.660281c6@endymion.delvare (mailing list archive)
State Superseded
Headers show

Commit Message

Jean Delvare Sept. 26, 2010, 2:25 p.m. UTC
None
diff mbox

Patch

--- linux-2.6.36-rc5.orig/drivers/media/dvb/dvb-usb/dib0700_core.c	2010-09-24 17:17:16.000000000 +0200
+++ linux-2.6.36-rc5/drivers/media/dvb/dvb-usb/dib0700_core.c	2010-09-26 15:04:59.000000000 +0200
@@ -674,7 +674,8 @@  static int dib0700_probe(struct usb_inte
 				dev->props.rc.core.bulk_mode = false;
 
 			/* Need a higher delay, to avoid wrong repeat */
-			dev->rc_input_dev->rep[REP_DELAY] = 500;
+			if (dev->rc_input_dev)
+				dev->rc_input_dev->rep[REP_DELAY] = 500;
 
 			dib0700_rc_setup(dev);