Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1530,7 +1530,7 @@ static int hackrf_probe(struct usb_interface *intf,
err_kfree:
	kfree(dev);
err:
	dev_dbg(dev->dev, "failed=%d\n", ret);
	dev_dbg(&intf->dev, "failed=%d\n", ret);
	return ret;
}