[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>
This commit is contained in:
Antti Palosaari 2015-10-21 19:02:41 -02:00 committed by Mauro Carvalho Chehab
parent dfcf36d904
commit eb35cf47c3

View File

@ -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;
}