* [PATCH] appletalk: fix erroneous return value
@ 2016-02-17 15:53 Anton Protopopov
2016-02-18 19:59 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Anton Protopopov @ 2016-02-17 15:53 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, David S. Miller, netdev, linux-kernel
Cc: Anton Protopopov
The atalk_sendmsg() function might return wrong value ENETUNREACH
instead of -ENETUNREACH.
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
---
net/appletalk/ddp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index d5871ac..f066781 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;
--
2.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] appletalk: fix erroneous return value
2016-02-17 15:53 [PATCH] appletalk: fix erroneous return value Anton Protopopov
@ 2016-02-18 19:59 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-02-18 19:59 UTC (permalink / raw)
To: a.s.protopopov; +Cc: acme, netdev, linux-kernel
From: Anton Protopopov <a.s.protopopov@gmail.com>
Date: Wed, 17 Feb 2016 10:53:59 -0500
> The atalk_sendmsg() function might return wrong value ENETUNREACH
> instead of -ENETUNREACH.
>
> Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-18 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 15:53 [PATCH] appletalk: fix erroneous return value Anton Protopopov
2016-02-18 19:59 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).