The patch titled pxa2xx_spi: prevent panic case setup() fails has been removed from the -mm tree. Its filename was pxa2xx_spi-prevent-panic-case-setup-fails.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: pxa2xx_spi: prevent panic case setup() fails From: Daniel Ribeiro <drwyrm@xxxxxxxxx> setup() may fail before ctldata is set, causing a kernel panic on cleanup(). Signed-off-by: Daniel Ribeiro <drwyrm@xxxxxxxxx> Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Cc: Eric Miao <eric.y.miao@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/spi/pxa2xx_spi.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN drivers/spi/pxa2xx_spi.c~pxa2xx_spi-prevent-panic-case-setup-fails drivers/spi/pxa2xx_spi.c --- a/drivers/spi/pxa2xx_spi.c~pxa2xx_spi-prevent-panic-case-setup-fails +++ a/drivers/spi/pxa2xx_spi.c @@ -1373,6 +1373,9 @@ static void cleanup(struct spi_device *s { struct chip_data *chip = spi_get_ctldata(spi); + if (!chip) + return; + if (gpio_is_valid(chip->gpio_cs)) gpio_free(chip->gpio_cs); _ Patches currently in -mm which might be from drwyrm@xxxxxxxxx are origin.patch linux-next.patch pxa2xx_spi-fix-for-spi_cs_high.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html