diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-17 10:54:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 14:59:35 -0500 |
commit | 449f14f01f65f45f332e3360aa46b3d3571b2cba (patch) | |
tree | 55019be988c3d774b2540849d88071934da5634c /net | |
parent | 48bb230e8723d7dd87928f0c0c3f6cb1fd5bc9be (diff) | |
download | linux-449f14f01f65f45f332e3360aa46b3d3571b2cba.tar.gz linux-449f14f01f65f45f332e3360aa46b3d3571b2cba.tar.bz2 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')
-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; } |