提交 6d20e6b2 编写于 作者: D Dan Carpenter 提交者: Richard Weinberger

um: return negative in tuntap_open_tramp()

The intention is to return negative error codes.  "pid" is already
negative but we accidentally negate it again back to positive.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 7b24afbf
......@@ -80,7 +80,7 @@ static int tuntap_open_tramp(char *gate, int *fd_out, int me, int remote,
pid = run_helper(tuntap_pre_exec, &data, argv);
if (pid < 0)
return -pid;
return pid;
close(remote);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册