diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-17 16:53:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 20:59:34 +0100 |
commit | 48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be (patch) | |
tree | 563ac6884259bb8b716d8d12acb00763b71b4f30 /net/appletalk | |
parent | lance: Return correct error code (diff) | |
download | linux-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.c | 2 |
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; |