diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 14:56:37 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 14:56:37 -0700 |
commit | 195ae38ffa187c09ef5234a30650a7099aa77698 (patch) | |
tree | ffc76ef737651a0ef6a52883c2113d7aef6ed440 | |
parent | 01a94738fb4d2db3ef763b2dcc025a2bf57eaceb (diff) | |
download | kdbus-bus-195ae38ffa187c09ef5234a30650a7099aa77698.tar.gz kdbus-bus-195ae38ffa187c09ef5234a30650a7099aa77698.tar.bz2 kdbus-bus-195ae38ffa187c09ef5234a30650a7099aa77698.zip |
return proper -EINVAL instead of EINVAL for an error
-rw-r--r-- | bus.c | 2 | ||||
-rw-r--r-- | endpoint.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -295,7 +295,7 @@ int kdbus_bus_make_user(void __user *buf, struct kdbus_cmd_bus_kmake **kmake) /* expect correct padding and size values */ if ((char *)item - ((char *)&km->make + km->make.size) >= 8) - return EINVAL; + return -EINVAL; if (!km->name) { ret = -EBADMSG; diff --git a/endpoint.c b/endpoint.c index 57ca84350bb..f1610769e61 100644 --- a/endpoint.c +++ b/endpoint.c @@ -277,7 +277,7 @@ int kdbus_ep_kmake_user(void __user *buf, struct kdbus_cmd_ep_kmake **kmake) /* expect correct padding and size values */ if ((char *)item - ((char *)&km->make + km->make.size) >= 8) - return EINVAL; + return -EINVAL; if (!km->name) { ret = -EBADMSG; |