summaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
authorAnton Protopopov <a.s.protopopov@gmail.com>2016-02-17 16:53:59 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-18 20:59:34 +0100
commit48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be (patch)
tree563ac6884259bb8b716d8d12acb00763b71b4f30 /net/appletalk
parentlance: Return correct error code (diff)
downloadlinux-48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be.tar.xz
linux-48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be.zip
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>
Diffstat (limited to 'net/appletalk')
-rw-r--r--net/appletalk/ddp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index d5871ac493eb..f066781be3c8 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1625,7 +1625,7 @@ static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
rt = atrtr_find(&at_hint);
}
- err = ENETUNREACH;
+ err = -ENETUNREACH;
if (!rt)
goto out;