Skip to content

Commit 6d20e6b

Browse files
Dan Carpenterrichardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 7b24afb commit 6d20e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/os-Linux/drivers/tuntap_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int tuntap_open_tramp(char *gate, int *fd_out, int me, int remote,
8080
pid = run_helper(tuntap_pre_exec, &data, argv);
8181

8282
if (pid < 0)
83-
return -pid;
83+
return pid;
8484

8585
close(remote);
8686

0 commit comments

Comments
 (0)