netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: net: qmi_wwan: bind to both control and data interface
@ 2012-06-22 14:25 Dan Carpenter
  2012-06-22 16:27 ` Bjørn Mork
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2012-06-22 14:25 UTC (permalink / raw)
  To: bjorn; +Cc: netdev

Hello Bjørn Mork,

The patch 230718bda1be: "net: qmi_wwan: bind to both control and data 
interface" from Jun 19, 2012, leads to the following Smatch warning:
drivers/net/usb/qmi_wwan.c:206 qmi_wwan_bind()
	 error: potential NULL dereference 'cdc_union'.

drivers/net/usb/qmi_wwan.c
   205          /* verify CDC Union */
   206          if (desc->bInterfaceNumber != cdc_union->bMasterInterface0) {
                                              ^^^^^^^^^

cdc_union is only non-NULL for USB_CDC_UNION_TYPE.  We used to check for
NULL here but your patch removes the check.  I just want to verify that
that was intended.

   207                  dev_err(&intf->dev, "bogus CDC Union: master=%u\n", cdc_union->bMasterInterface0);
   208                  goto err;
   209          }
   210  

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-22 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 14:25 net: qmi_wwan: bind to both control and data interface Dan Carpenter
2012-06-22 16:27 ` Bjørn Mork
2012-06-22 16:56   ` Dan Carpenter
2012-06-22 17:34     ` Bjørn Mork

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).