um: return negative in tuntap_open_tramp()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Aug 2017 10:19:58 +0000 (13:19 +0300)
committerRichard Weinberger <richard@nod.at>
Wed, 13 Sep 2017 20:36:50 +0000 (22:36 +0200)
commit6d20e6b235aad0be463b23588093b079362bb2e4
tree14ac8cd0d6250f376708440da3c583314d57023b
parent7b24afbfe30b38d59cca7543a352b03848330d91
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>
arch/um/os-Linux/drivers/tuntap_user.c