projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proc: bootconfig: Add null pointer check
[linux-2.6-microblaze.git]
/
fs
/
proc
/
bootconfig.c
diff --git
a/fs/proc/bootconfig.c
b/fs/proc/bootconfig.c
index
6d8d4bf
..
2e244ad
100644
(file)
--- a/
fs/proc/bootconfig.c
+++ b/
fs/proc/bootconfig.c
@@
-32,6
+32,8
@@
static int __init copy_xbc_key_value_list(char *dst, size_t size)
int ret = 0;
key = kzalloc(XBC_KEYLEN_MAX, GFP_KERNEL);
+ if (!key)
+ return -ENOMEM;
xbc_for_each_key_value(leaf, val) {
ret = xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX);