alistair23-linux/drivers/mtd/devices
Gustavo A. R. Silva 90cc62f343 mtd: spear_smi: add NULL check on devm_kzalloc() return value
Check return value from call to devm_kzalloc()
in order to prevent a NULL pointer dereference.

This issue was detected using Coccinelle and the following semantic patch:

@@
expression x;
identifier fld;
@@

* x = devm_kzalloc(...);
  ... when != x == NULL
  x->fld

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2017-08-15 14:00:42 +02:00
..
bcm47xxsflash.c mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
bcm47xxsflash.h mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
block2mtd.c
docg3.c mtd: create per-device and module-scope debugfs entries 2017-07-21 13:25:29 -07:00
docg3.h mtd: create per-device and module-scope debugfs entries 2017-07-21 13:25:29 -07:00
Kconfig mtd: mchp23k256: Add driver for this SPI SRAM device 2017-05-11 10:13:02 -07:00
lart.c ARM: 8638/1: mtd: lart: Rename partition defines to be prefixed with PART_ 2017-02-28 11:05:46 +00:00
m25p80.c mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols 2017-05-15 21:56:17 +02:00
Makefile mtd: mchp23k256: Add driver for this SPI SRAM device 2017-05-11 10:13:02 -07:00
mchp23k256.c mtd: mchp23k256: Add support for mchp23lcv1024 2017-06-08 16:32:11 -07:00
ms02-nv.c
ms02-nv.h
mtd_dataflash.c mtd: dataflash: Add flash_info for AT45DB641E 2017-05-11 10:04:52 -07:00
mtdram.c
phram.c
pmc551.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
powernv_flash.c
serial_flash_cmds.h mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead 2017-06-27 21:50:17 +02:00
slram.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
spear_smi.c mtd: spear_smi: add NULL check on devm_kzalloc() return value 2017-08-15 14:00:42 +02:00
sst25l.c
st_spi_fsm.c mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead 2017-06-27 21:50:17 +02:00