On Saturday 20 September 2008, Cliff Brake wrote:
> static int spidev_remove(struct spi_device *spi)
> {
>         struct spidev_data      *spidev = spi_get_drvdata(spi);
> 
>         /* make sure ops on existing fds can abort cleanly */
>         spin_lock_irq(&spidev->spi_lock);
>         spidev->spi = NULL;    <<<<<< this line is crashing
> 
> spidev is NULL, thus the crash.

Hmm, who would want to remove this driver?  :)

Looks like spi_set_drvdata() isn't getting called.  This
probably got goofed when some funkier crashes got fixed;
unless it's been there forever...



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to