Commit eb35cf47 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent dfcf36d9
...@@ -1530,7 +1530,7 @@ static int hackrf_probe(struct usb_interface *intf, ...@@ -1530,7 +1530,7 @@ static int hackrf_probe(struct usb_interface *intf,
err_kfree: err_kfree:
kfree(dev); kfree(dev);
err: err:
dev_dbg(dev->dev, "failed=%d\n", ret); dev_dbg(&intf->dev, "failed=%d\n", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment