You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
committed by
Richard Weinberger
parent
7b24afbfe3
commit
6d20e6b235
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user