Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d20e6b2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Richard Weinberger
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7b24afbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);