smatch stuff: serial: ifx6x60: oops on load

From: Dan Carpenter
Date: Mon Dec 20 2010 - 04:16:16 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/