* [PATCH] net: caif: fix erroneous return value
@ 2016-02-17 15:54 Anton Protopopov
2016-02-18 19:59 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Anton Protopopov @ 2016-02-17 15:54 UTC (permalink / raw)
To: Dmitry Tarnyagin, David S. Miller, netdev, linux-kernel; +Cc: Anton Protopopov
The cfrfml_receive() function might return positive value EPROTO
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
---
net/caif/cfrfml.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c
index 61d7617..b82440e 100644
--- a/net/caif/cfrfml.c
+++ b/net/caif/cfrfml.c
@@ -159,7 +159,7 @@ static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt)
tmppkt = NULL;
/* Verify that length is correct */
- err = EPROTO;
+ err = -EPROTO;
if (rfml->pdu_size != cfpkt_getlen(pkt) - RFM_HEAD_SIZE + 1)
goto out;
}
--
2.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: caif: fix erroneous return value
2016-02-17 15:54 [PATCH] net: caif: 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: dmitry.tarnyagin, netdev, linux-kernel
From: Anton Protopopov <a.s.protopopov@gmail.com>
Date: Wed, 17 Feb 2016 10:54:13 -0500
> The cfrfml_receive() function might return positive value EPROTO
>
> 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 20:00 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:54 [PATCH] net: caif: 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).