* re: [media] dvb_usb_v2: use dev_* logging macros
@ 2014-06-12 14:30 Dan Carpenter
2014-06-12 14:38 ` Antti Palosaari
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2014-06-12 14:30 UTC (permalink / raw)
To: crope; +Cc: linux-media
Hello Antti Palosaari,
This is a semi-automatic email about new static checker warnings.
The patch d10d1b9ac97b: "[media] dvb_usb_v2: use dev_* logging
macros" from Jun 26, 2012, leads to the following Smatch complaint:
drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c:31 dvb_usb_v2_generic_io()
error: we previously assumed 'd' could be null (see line 29)
drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c
28
29 if (!d || !wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint ||
^^
Old check.
30 !d->props->generic_bulk_ctrl_endpoint_response) {
31 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, -EINVAL);
^^^^^^^^^^^^^
New dereference.
32 return -EINVAL;
33 }
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [media] dvb_usb_v2: use dev_* logging macros
2014-06-12 14:30 [media] dvb_usb_v2: use dev_* logging macros Dan Carpenter
@ 2014-06-12 14:38 ` Antti Palosaari
0 siblings, 0 replies; 2+ messages in thread
From: Antti Palosaari @ 2014-06-12 14:38 UTC (permalink / raw)
To: Dan Carpenter; +Cc: linux-media
Moikka Dan,
Thank for the report. I will check that later... I am now back from
traveling and there is a lot of stuff on my queue waiting for action.
regards
Antti
On 06/12/2014 05:30 PM, Dan Carpenter wrote:
> Hello Antti Palosaari,
>
> This is a semi-automatic email about new static checker warnings.
>
> The patch d10d1b9ac97b: "[media] dvb_usb_v2: use dev_* logging
> macros" from Jun 26, 2012, leads to the following Smatch complaint:
>
> drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c:31 dvb_usb_v2_generic_io()
> error: we previously assumed 'd' could be null (see line 29)
>
> drivers/media/usb/dvb-usb-v2/dvb_usb_urb.c
> 28
> 29 if (!d || !wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint ||
> ^^
> Old check.
>
> 30 !d->props->generic_bulk_ctrl_endpoint_response) {
> 31 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, -EINVAL);
> ^^^^^^^^^^^^^
> New dereference.
>
> 32 return -EINVAL;
> 33 }
>
> regards,
> dan carpenter
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-12 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12 14:30 [media] dvb_usb_v2: use dev_* logging macros Dan Carpenter
2014-06-12 14:38 ` Antti Palosaari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).