[PATCH] mtd: spi-nor: Make sure nor->spimem and nor->controller_ops are mutually exclusive

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Mon Nov 11 11:26:48 PST 2019



On 11/11/2019 11:44 AM, Tudor Ambarus - M18064 wrote:
> From: Tudor Ambarus <tudor.ambarus at microchip.com>
> 
> Expand the spi_nor_check() to make sure that nor->spimem and
> nor->controller_ops are mutually exclusive.
> 
> Fixes: b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
> ---
> v3:
> - split checks for better error accuracy
> - s/mutual/mutually
> 
>  drivers/mtd/spi-nor/spi-nor.c | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to spi-nor/next.


More information about the linux-mtd mailing list