summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-05-31 08:06:14 +0200
committerHarald Hoyer <harald@redhat.com>2013-05-31 08:06:14 +0200
commit89c1594473d5c27d67cc72915c3d304949207647 (patch)
tree471a7f7068d0fd5fc6fd5a35f23874270ada8102
parenta3f669ed944563844a4c4c7f19428a0e4396dd99 (diff)
downloadkdbus-bus-89c1594473d5c27d67cc72915c3d304949207647.tar.gz
kdbus-bus-89c1594473d5c27d67cc72915c3d304949207647.tar.bz2
kdbus-bus-89c1594473d5c27d67cc72915c3d304949207647.zip
return proper -EINVAL instead of EINVAL for an error
-rw-r--r--endpoint.c2
-rw-r--r--namespace.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/endpoint.c b/endpoint.c
index 834d595c53b..ab5f21ea396 100644
--- a/endpoint.c
+++ b/endpoint.c
@@ -275,7 +275,7 @@ int kdbus_ep_kmake_user(void __user *buf, struct kdbus_cmd_ep_kmake **kmake)
}
if (!KDBUS_PART_END(item, &km->make))
- return EINVAL;
+ return -EINVAL;
if (!km->name) {
ret = -EBADMSG;
diff --git a/namespace.c b/namespace.c
index d39f95b30c9..58836fedea3 100644
--- a/namespace.c
+++ b/namespace.c
@@ -295,7 +295,7 @@ int kdbus_ns_kmake_user(void __user *buf, struct kdbus_cmd_ns_kmake **kmake)
}
if (!KDBUS_PART_END(item, &km->make))
- return EINVAL;
+ return -EINVAL;
if (!km->name) {
ret = -EBADMSG;