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:
parent
a09f4af177
commit
48bb230e87
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue