Skip to content

Commit

Permalink
net: caif: fix erroneous return value
Browse files Browse the repository at this point in the history
The cfrfml_receive() function might return positive value EPROTO

Signed-off-by: Anton Protopopov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
aspsk authored and davem330 committed Feb 18, 2016
1 parent 48bb230 commit 449f14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/caif/cfrfml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 449f14f

Please sign in to comment.