From: Felipe Contreras on
On Tue, Feb 23, 2010 at 9:36 PM, Scott Ellis <scott(a)> wrote:
> Check spi->controller_state before dereferencing.
> Shows up NULL here when using spi_alloc_device()/spi_add_device()
> and spi_add_device() fails before spi_setup(). Calling spi_dev_put()
> on the leftover spi_device results in the error.

This should go to the linux-omap mailing list.

Felipe Contreras
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at