projects
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5003f09
)
[FIX] verification of dedicated memory
author
Vyacheslav Cherkashin
<v.cherkashin@samsung.com>
Wed, 3 Jul 2013 12:50:00 +0000
(16:50 +0400)
committer
Vyacheslav Cherkashin
<v.cherkashin@samsung.com>
Wed, 3 Jul 2013 12:50:00 +0000
(16:50 +0400)
parser/msg_parser.c
patch
|
blob
|
history
diff --git
a/parser/msg_parser.c
b/parser/msg_parser.c
index
5f2c628
..
94d2181
100644
(file)
--- a/
parser/msg_parser.c
+++ b/
parser/msg_parser.c
@@
-210,11
+210,11
@@
struct lib_inst_data *create_lib_inst_data(struct msg_buf *mb)
return NULL;
li = kmalloc(sizeof(*li), GFP_KERNEL);
- if (li)
+ if (li
== NULL
)
goto free_path;
li->func = kmalloc(sizeof(struct func_inst_data *) * cnt, GFP_KERNEL);
- if (li->
cnt_func
)
+ if (li->
func == NULL
)
goto free_li;
for (i = 0; i < cnt; ++i) {