alistair23-linux/drivers/mtd/maps
Colin Ian King 7e0c19c960 mtd: physmap_of: fix null pointer deference when kzalloc returns null
static analysis by smatch caught the following error:

drivers/mtd/maps/physmap_of.c:135 of_get_probes()
   error: potential null dereference 'res'.  (kzalloc returns null)

Check for failed kzalloc and return -ENOMEM in of_flash_probe if
this occurs.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-08-18 17:57:19 -07:00
..
amd76xrom.c mtd: maps: Spelling s/reseved/reserved/ 2015-05-21 10:37:51 -07:00
bfin-async-flash.c
cfi_flagadm.c
ck804xrom.c
dc21285.c mtd: dc21285: use raw spinlock functions for nw_gpio_lock 2015-05-28 12:01:29 -07:00
esb2rom.c mtd: maps: Spelling s/reseved/reserved/ 2015-05-21 10:37:51 -07:00
gpio-addr-flash.c
ichxrom.c mtd: maps: Spelling s/reseved/reserved/ 2015-05-21 10:37:51 -07:00
impa7.c
intel_vr_nor.c
ixp4xx.c
Kconfig mtd: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-20 15:50:24 -07:00
l440gx.c
lantiq-flash.c mtd: lantiq-flash: use default partition parsers 2015-05-27 12:35:12 -07:00
latch-addr-flash.c
Makefile
map_funcs.c
netsc520.c
nettel.c mtd: nettel: do not ignore mtd_device_register() failure in nettel_init() 2015-08-18 17:33:34 -07:00
pci.c
pcmciamtd.c
physmap.c
physmap_of.c mtd: physmap_of: fix null pointer deference when kzalloc returns null 2015-08-18 17:57:19 -07:00
pismo.c
plat-ram.c
pmcmsp-flash.c
pxa2xx-flash.c
rbtx4939-flash.c
sa1100-flash.c mtd: maps: sa1100-flash: remove incorrect __exit markups 2015-03-30 17:50:40 -07:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c
sun_uflash.c
ts5500_flash.c mtd: ts5500_flash: Fix typo in MODULE_DESCRIPTION in ts5500_flash.c 2015-03-30 20:19:44 -07:00
tsunami_flash.c
uclinux.c
vmu-flash.c