Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48bb230e authored by Anton Protopopov's avatar Anton Protopopov Committed by David S. Miller
Browse files

appletalk: fix erroneous return value



The atalk_sendmsg() function might return wrong value ENETUNREACH
instead of -ENETUNREACH.

Signed-off-by: default avatarAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a09f4af1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;