public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* smatch stuff: serial: ifx6x60: oops on load
@ 2010-12-20  9:15 Dan Carpenter
  2010-12-29 16:41 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2010-12-20  9:15 UTC (permalink / raw)
  To: Russ Gorby; +Cc: Alan Cox, linux-kernel

Smatch complains that the ifx6x60 driver in linux-next has a NULL
dereference.

drivers/serial/ifx6x60.c +986 ifx_spi_spi_probe(27)
	error: potential null derefence 'pl_data'.

   984          ifx_dev->spi_timer.function = ifx_spi_timeout;
   985          ifx_dev->spi_timer.data = (unsigned long)ifx_dev;
   986          ifx_dev->is_6160 = pl_data->is_6160;
                                   ^^^^^^^
"pl_data" is always NULL at this point.  Presumably this crashes on load
every time.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <4C5E6457CD7911469A07260381288C28CB379310@orsmsx502.amr.corp.intel.com>]

end of thread, other threads:[~2010-12-29 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20  9:15 smatch stuff: serial: ifx6x60: oops on load Dan Carpenter
2010-12-29 16:41 ` Alan Cox
     [not found] <4C5E6457CD7911469A07260381288C28CB379310@orsmsx502.amr.corp.intel.com>
     [not found] ` <E1A1564674E5754FB00AB9AC949D5E3260EB004322@rrsmsx501.amr.corp.intel.com>
     [not found]   ` <72D8A09E39A89147BE9CFBB6F0C73C3061F523A532@rrsmsx501.amr.corp.intel.com>
     [not found]     ` <E1A1564674E5754FB00AB9AC949D5E3260EB09CDD7@rrsmsx501.amr.corp.intel.com>
2010-12-29 16:19       ` Gorby, Russ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox