Skip to content

Commit 48bb230

Browse files
aspskdavem330
authored andcommitted
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>
1 parent a09f4af commit 48bb230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/appletalk/ddp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
16251625

16261626
rt = atrtr_find(&at_hint);
16271627
}
1628-
err = ENETUNREACH;
1628+
err = -ENETUNREACH;
16291629
if (!rt)
16301630
goto out;
16311631

0 commit comments

Comments
 (0)