commit | 7e0c19c9608483808e6b5c294e357fa456f058e1 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Fri Jul 17 11:37:52 2015 +0100 |
committer | Brian Norris <computersforpeace@gmail.com> | Tue Aug 18 17:57:19 2015 -0700 |
tree | bef1c0a26bcb32b9dd18f2432d8f07e53ec4776b | |
parent | 11c7e0e2f91fdfdf9f7b4d107bc93d6c298c95fe [diff] |
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>