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

appletalk: fix erroneous return value

The atalk_sendmsg() function might return wrong value ENETUNREACH
instead of -ENETUNREACH.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Anton Protopopov and committed by
David S. Miller
48bb230e a09f4af1

+1 -1
+1 -1
net/appletalk/ddp.c
··· 1625 1625 1626 1626 rt = atrtr_find(&at_hint); 1627 1627 } 1628 - err = ENETUNREACH; 1628 + err = -ENETUNREACH; 1629 1629 if (!rt) 1630 1630 goto out; 1631 1631