[GITLAB] - UPGRADE TO v12 on Wednesday the 18th of December at 11.30AM

  • Geert Uytterhoeven's avatar
    spi: Fix crash with double message finalisation on error handling · 69823005
    Geert Uytterhoeven authored
    commit 1f802f8249a0da536877842c43c7204064c4de8b upstream.
    
    This reverts commit e120cc0dcf2880a4c5c0a6cb27b655600a1cfa1d.
    
    It causes a NULL pointer dereference with drivers using the generic
    spi_transfer_one_message(), which always calls
    spi_finalize_current_message(), which zeroes master->cur_msg.
    
    Drivers implementing transfer_one_message() theirselves must always call
    spi_finalize_current_message(), even if the transfer failed:
    
     * @transfer_one_message: the subsystem calls the driver to transfer a single
     *      message while queuing transfers that arrive in the meantime. When the
     *      driver is finished with this message, it must call
     *      spi_finalize_current_message() so the subsystem can issue the next
     *      transfer
    Signed-off-by: 's avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
    Signed-off-by: 's avatarMark Brown <broonie@linaro.org>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    69823005
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
spi-altera.c Loading commit data...
spi-ath79.c Loading commit data...
spi-atmel.c Loading commit data...
spi-au1550.c Loading commit data...
spi-bcm2835.c Loading commit data...
spi-bcm63xx.c Loading commit data...
spi-bfin-sport.c Loading commit data...
spi-bfin5xx.c Loading commit data...
spi-bitbang-txrx.h Loading commit data...
spi-bitbang.c Loading commit data...
spi-butterfly.c Loading commit data...
spi-clps711x.c Loading commit data...
spi-coldfire-qspi.c Loading commit data...
spi-davinci.c Loading commit data...
spi-dw-mid.c Loading commit data...
spi-dw-mmio.c Loading commit data...
spi-dw-pci.c Loading commit data...
spi-dw.c Loading commit data...
spi-dw.h Loading commit data...
spi-ep93xx.c Loading commit data...
spi-falcon.c Loading commit data...
spi-fsl-cpm.c Loading commit data...
spi-fsl-cpm.h Loading commit data...
spi-fsl-espi.c Loading commit data...
spi-fsl-lib.c Loading commit data...
spi-fsl-lib.h Loading commit data...
spi-fsl-spi.c Loading commit data...
spi-fsl-spi.h Loading commit data...
spi-gpio.c Loading commit data...
spi-imx.c Loading commit data...
spi-lm70llp.c Loading commit data...
spi-mpc512x-psc.c Loading commit data...
spi-mpc52xx-psc.c Loading commit data...
spi-mpc52xx.c Loading commit data...
spi-mxs.c Loading commit data...
spi-nuc900.c Loading commit data...
spi-oc-tiny.c Loading commit data...
spi-octeon.c Loading commit data...
spi-omap-100k.c Loading commit data...
spi-omap-uwire.c Loading commit data...
spi-omap2-mcspi.c Loading commit data...
spi-orion.c Loading commit data...
spi-pl022.c Loading commit data...
spi-ppc4xx.c Loading commit data...
spi-pxa2xx-dma.c Loading commit data...
spi-pxa2xx-pci.c Loading commit data...
spi-pxa2xx-pxadma.c Loading commit data...
spi-pxa2xx.c Loading commit data...
spi-pxa2xx.h Loading commit data...
spi-rspi.c Loading commit data...
spi-s3c24xx-fiq.S Loading commit data...
spi-s3c24xx-fiq.h Loading commit data...
spi-s3c24xx.c Loading commit data...
spi-s3c64xx.c Loading commit data...
spi-sc18is602.c Loading commit data...
spi-sh-hspi.c Loading commit data...
spi-sh-msiof.c Loading commit data...
spi-sh-sci.c Loading commit data...
spi-sh.c Loading commit data...
spi-sirf.c Loading commit data...
spi-tegra114.c Loading commit data...
spi-tegra20-sflash.c Loading commit data...
spi-tegra20-slink.c Loading commit data...
spi-ti-ssp.c Loading commit data...
spi-tle62x0.c Loading commit data...
spi-topcliff-pch.c Loading commit data...
spi-txx9.c Loading commit data...
spi-xcomm.c Loading commit data...
spi-xilinx.c Loading commit data...
spi.c Loading commit data...
spidev.c Loading commit data...