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:
4020ca2
)
bus: don't try to free an ERR_PTR
author
Daniel Mack
<zonque@gmail.com>
Wed, 18 Dec 2013 00:39:16 +0000
(
01:39
+0100)
committer
Daniel Mack
<zonque@gmail.com>
Wed, 18 Dec 2013 00:39:16 +0000
(
01:39
+0100)
bus.c
patch
|
blob
|
history
diff --git
a/bus.c
b/bus.c
index f0a814b14f50d88d5976739a7bb457baecfe56fb..2b0f43b7b381cc671acbb7b25303804dfad040b2 100644
(file)
--- a/
bus.c
+++ b/
bus.c
@@
-279,10
+279,8
@@
int kdbus_bus_make_user(void __user *buf, struct kdbus_cmd_make **make,
return -EMSGSIZE;
m = memdup_user(buf, size);
- if (IS_ERR(m)) {
- ret = PTR_ERR(m);
- goto exit;
- }
+ if (IS_ERR(m))
+ return PTR_ERR(m);
KDBUS_ITEM_FOREACH(item, m, items) {
if (!KDBUS_ITEM_VALID(item, m)) {