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>
This commit is contained in:
Anton Protopopov 2016-02-17 10:53:59 -05:00 committed by David S. Miller
parent a09f4af177
commit 48bb230e87
1 changed files with 1 additions and 1 deletions

View File

@ -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;