Commit 64c6e295 authored by Radostin Stoyanov's avatar Radostin Stoyanov Committed by Andrei Vagin

namespaces: Use EINVAL instead of 22

Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent b8fdcd71
......@@ -46,7 +46,7 @@ static unsigned int join_ns_flags;
int check_namespace_opts(void)
{
errno = 22;
errno = EINVAL;
if (join_ns_flags & opts.empty_ns) {
pr_err("Conflicting flags: --join-ns and --empty-ns\n");
return -1;
......@@ -71,7 +71,7 @@ static int check_int_str(char *str)
return 0;
}
errno = 22;
errno = EINVAL;
val = strtol(str, &endptr, 10);
if ((errno == ERANGE) || (endptr == str)
|| (*endptr != '\0')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment