summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2015-07-17 13:37:52 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-08-19 03:57:19 +0300
commit7e0c19c9608483808e6b5c294e357fa456f058e1 (patch)
treebef1c0a26bcb32b9dd18f2432d8f07e53ec4776b /drivers/mtd/nand
parent11c7e0e2f91fdfdf9f7b4d107bc93d6c298c95fe (diff)
downloadlinux-7e0c19c9608483808e6b5c294e357fa456f058e1.tar.xz
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>
Diffstat (limited to 'drivers/mtd/nand')
0 files changed, 0 insertions, 0 deletions