projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcf36d
)
[media] hackrf: fix possible null ptr on debug printing
author
Antti Palosaari
<crope@iki.fi>
Wed, 21 Oct 2015 21:02:41 +0000
(19:02 -0200)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Fri, 18 Dec 2015 17:25:29 +0000
(15:25 -0200)
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>
drivers/media/usb/hackrf/hackrf.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/hackrf/hackrf.c
b/drivers/media/usb/hackrf/hackrf.c
index e05bfec90f4608b0d8ebce199351dfe89db11994..84e8a4210e2e391180f0431b54861f7a6196bfb6 100644
(file)
--- 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;
}