diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-17 10:53:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 14:59:34 -0500 |
commit | 48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be (patch) | |
tree | 563ac6884259bb8b716d8d12acb00763b71b4f30 /net | |
parent | a09f4af177d2a5b7dc424aba6ba808f4a674ce81 (diff) | |
download | linux-48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be.tar.bz2 |
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')
-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; |