[media] lmedm04: Fix possible NULL pointer dereference
authorSyam Sidhardhan <syamsidhardh@gmail.com>
Sun, 24 Feb 2013 21:47:18 +0000 (18:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Mar 2013 19:34:15 +0000 (16:34 -0300)
commit06f950f43f29eb0b5631c6d037d78319649ac3b0
tree1bb7f1c2b0f6b28090df5992476157f8fd3c4fc2
parent4d35435d3ffb853b491f5bb21a62529cd925d660
[media] lmedm04: Fix possible NULL pointer dereference

Check for (adap == NULL) has to done before accessing adap.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/lmedm04.c