From: João Paulo Rechi Vita Date: Tue, 22 Jun 2010 16:56:27 +0000 (-0300) Subject: Bluetooth: Fix error value for wrong FCS. X-Git-Tag: v2.6.36-rc1~571^2~64^2~48^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a560e5c99dc5f03e2c0dbe05ed20008af5d0bcf;p=profile%2Fivi%2Fkernel-x86-ivi.git Bluetooth: Fix error value for wrong FCS. Signed-off-by: João Paulo Rechi Vita Acked-by: Gustavo F. Padovan Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 58c81cb..de545f1 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -3423,7 +3423,7 @@ static int l2cap_check_fcs(struct l2cap_pinfo *pi, struct sk_buff *skb) our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); if (our_fcs != rcv_fcs) - return -EINVAL; + return -EBADMSG; } return 0; }