summaryrefslogtreecommitdiffstats
path: root/net/appletalk/ddp.c
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/ddp.c
parenta09f4af177d2a5b7dc424aba6ba808f4a674ce81 (diff)
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/ddp.c')
-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)
1625 1625
1626 rt = atrtr_find(&at_hint); 1626 rt = atrtr_find(&at_hint);
1627 } 1627 }
1628 err = ENETUNREACH; 1628 err = -ENETUNREACH;
1629 if (!rt) 1629 if (!rt)
1630 goto out; 1630 goto out;
1631 1631