Commit 741719e8 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

ns: Fix error return value in __get_ns_id()

Function has unsigned int return value, and error is coded by 0, not -1.

travis-ci: success for ns: Fix error return value in __get_ns_id()
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8cae4bdc
...@@ -449,7 +449,7 @@ static unsigned int __get_ns_id(int pid, struct ns_desc *nd, protobuf_c_boolean ...@@ -449,7 +449,7 @@ static unsigned int __get_ns_id(int pid, struct ns_desc *nd, protobuf_c_boolean
goto out; goto out;
} }
pr_perror("Unable to stat %s", ns_path); pr_perror("Unable to stat %s", ns_path);
return -1; return 0;
} }
kid = st.st_ino; kid = st.st_ino;
BUG_ON(!kid); BUG_ON(!kid);
......
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