diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-17 16:54:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 20:59:35 +0100 |
commit | 449f14f01f65f45f332e3360aa46b3d3571b2cba (patch) | |
tree | 55019be988c3d774b2540849d88071934da5634c /net/caif | |
parent | appletalk: fix erroneous return value (diff) | |
download | linux-449f14f01f65f45f332e3360aa46b3d3571b2cba.tar.xz linux-449f14f01f65f45f332e3360aa46b3d3571b2cba.zip |
net: caif: fix erroneous return value
The cfrfml_receive() function might return positive value EPROTO
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/cfrfml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index 61d7617d9249..b82440e1fcb4 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; } |