netlink-socket: Fix sign of error code.
authorBen Pfaff <blp@nicira.com>
Thu, 10 Jul 2014 21:32:10 +0000 (14:32 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 10 Jul 2014 23:50:36 +0000 (16:50 -0700)
commitf3b0492198ad992c87019bb3469d2a4e0bfabc1d
tree40348fc84e2b39b78430eb69fcb0a730dd31c235
parent04fa7d0df76704cc92288c7407d1750fbe94bad6
netlink-socket: Fix sign of error code.

Commit 8f20fd98db (netlink-socket: Work around upstream kernel Netlink
bug.) got the sign of the error code wrong, so that it reported e.g. -22
for EINVAL to nl_sock_recv__()'s caller, instead of 22.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/netlink-socket.c