summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/hackrf
diff options
context:
space:
mode:
authorAntti Palosaari2015-10-21 23:02:41 +0200
committerMauro Carvalho Chehab2015-12-18 18:25:29 +0100
commiteb35cf47c386fa2088580ff4f450abe8a6f9402e (patch)
treece837b4bbdcc68ea91f4b2a156b017fbb34194f9 /drivers/media/usb/hackrf
parent[media] Revert "[media] ivtv: avoid going past input/audio array" (diff)
downloadkernel-qcow2-linux-eb35cf47c386fa2088580ff4f450abe8a6f9402e.tar.gz
kernel-qcow2-linux-eb35cf47c386fa2088580ff4f450abe8a6f9402e.tar.xz
kernel-qcow2-linux-eb35cf47c386fa2088580ff4f450abe8a6f9402e.zip
[media] hackrf: fix possible null ptr on debug printing
drivers/media/usb/hackrf/hackrf.c:1533 hackrf_probe() error: we previously assumed 'dev' could be null (see line 1366) Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/hackrf')
-rw-r--r--drivers/media/usb/hackrf/hackrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c
index e05bfec90f46..84e8a4210e2e 100644
--- a/drivers/media/usb/hackrf/hackrf.c
+++ b/drivers/media/usb/hackrf/hackrf.c
@@ -1530,7 +1530,7 @@ err_v4l2_ctrl_handler_free_rx:
err_kfree:
kfree(dev);
err:
- dev_dbg(dev->dev, "failed=%d\n", ret);
+ dev_dbg(&intf->dev, "failed=%d\n", ret);
return ret;
}