projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d66c264
)
endpoint: fix memory leak on malformed input
author
Daniel Mack
<zonque@gmail.com>
Wed, 18 Dec 2013 00:36:36 +0000
(
01:36
+0100)
committer
Daniel Mack
<zonque@gmail.com>
Wed, 18 Dec 2013 00:37:14 +0000
(
01:37
+0100)
endpoint.c
patch
|
blob
|
history
diff --git
a/endpoint.c
b/endpoint.c
index ea5773a5142f99c6f20338c7601a2ba8db1bed28..3923327046df12cca366c039eeca5907dfbf99d1 100644
(file)
--- a/
endpoint.c
+++ b/
endpoint.c
@@
-295,8
+295,10
@@
int kdbus_ep_make_user(void __user *buf,
}
}
- if (!KDBUS_ITEM_END(item, m))
- return -EINVAL;
+ if (!KDBUS_ITEM_END(item, m)) {
+ ret = -EINVAL;
+ goto exit;
+ }
if (!n) {
ret = -EBADMSG;