diff options
author | 2015-07-17 11:37:52 +0100 | |
---|---|---|
committer | 2015-08-18 17:57:19 -0700 | |
commit | 7e0c19c9608483808e6b5c294e357fa456f058e1 (patch) | |
tree | bef1c0a26bcb32b9dd18f2432d8f07e53ec4776b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: nettel: do not ignore mtd_device_register() failure in nettel_init() (diff) | |
download | wireguard-linux-7e0c19c9608483808e6b5c294e357fa456f058e1.tar.xz wireguard-linux-7e0c19c9608483808e6b5c294e357fa456f058e1.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions