summaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
authorAnton Protopopov <a.s.protopopov@gmail.com>2016-02-17 10:53:59 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-18 14:59:34 -0500
commit48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be (patch)
tree563ac6884259bb8b716d8d12acb00763b71b4f30 /net/appletalk
parenta09f4af177d2a5b7dc424aba6ba808f4a674ce81 (diff)
downloadlinux-48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be.tar.gz
linux-48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be.tar.bz2
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;