git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c7e0e
)
mtd: physmap_of: fix null pointer deference when kzalloc returns null
author
Colin Ian King
<colin.king@canonical.com>
Fri, 17 Jul 2015 10:37:52 +0000
(11:37 +0100)
committer
Brian Norris
<computersforpeace@gmail.com>
Wed, 19 Aug 2015 00:57:19 +0000
(17:57 -0700)
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>
drivers/mtd/maps/physmap_of.c
patch
|
blob
|
history
diff --cc
drivers/mtd/maps/physmap_of.c
Simple merge