netlink: Don't change error code signs
PATCH 1/1 netlink: Don't change error code signs
Netlink errors returned by the kernel are already negative so don't change the sign, this was confusing some iwd code that depends on negative error numbers from l_netlink.
--- ell/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ell/netlink.c +1 -1
@@ -178,7 +178,7 @@ static void process_message(struct l_netlink *netlink, struct nlmsghdr *nlmsg)case NLMSG_ERROR : err = data +NLMSG_HDRLEN ; - command->handler (-err->error,0 ,NULL ,0 , + command->handler (err->error,0 ,NULL ,0 , command->user_data);break ; }
Signature · 1 line
2.17.1
Denis Kenzior
AppliedHi Andrew,
Quoted 7 lines · Andrew Zaborowski
Netlink errors returned by the kernel are already negative so don't change the sign, this was confusing some iwd code that depends on negative error numbers from
l_netlink.--- ell/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Regards,
-Denis