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:
7ddb643
)
[FIX] clean up when error
43/13843/2
author
Vyacheslav Cherkashin
<v.cherkashin@samsung.com>
Fri, 13 Dec 2013 11:34:34 +0000
(15:34 +0400)
committer
Nikita Kalyazin
<n.kalyazin@samsung.com>
Tue, 7 Jan 2014 05:08:47 +0000
(21:08 -0800)
in create_lib_inst_data()
Change-Id: Ia2324e9b25bfcd34220bfcbacbf5044e2b744511
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
parser/msg_parser.c
patch
|
blob
|
history
diff --git
a/parser/msg_parser.c
b/parser/msg_parser.c
index
3335732
..
fa71e57
100644
(file)
--- a/
parser/msg_parser.c
+++ b/
parser/msg_parser.c
@@
-285,12
+285,12
@@
struct lib_inst_data *create_lib_inst_data(struct msg_buf *mb)
print_parse_debug("func count:");
if (get_u32(mb, &cnt)) {
print_err("failed to read count of functions\n");
-
return NULL
;
+
goto free_path
;
}
if (remained_mb(mb) / MIN_SIZE_FUNC_INST < cnt) {
print_err("to match count of functions(%u)\n", cnt);
-
return NULL
;
+
goto free_path
;
}
li = kmalloc(sizeof(*li), GFP_KERNEL);