diff options
author | Antti Palosaari <crope@iki.fi> | 2015-10-22 00:02:41 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-12-18 20:25:29 +0300 |
commit | eb35cf47c386fa2088580ff4f450abe8a6f9402e (patch) | |
tree | ce837b4bbdcc68ea91f4b2a156b017fbb34194f9 /drivers | |
parent | dfcf36d90489a403d8d833f0f73d84a8d68b5570 (diff) | |
download | linux-eb35cf47c386fa2088580ff4f450abe8a6f9402e.tar.xz |
[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')
-rw-r--r-- | drivers/media/usb/hackrf/hackrf.c | 2 |
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; } |