Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Richard Weinberger
6d20e6b2 7b24afbf

+1 -1
+1 -1
arch/um/os-Linux/drivers/tuntap_user.c
··· 80 80 pid = run_helper(tuntap_pre_exec, &data, argv); 81 81 82 82 if (pid < 0) 83 - return -pid; 83 + return pid; 84 84 85 85 close(remote); 86 86