aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 58c81cbb4040..de545f1687d8 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)
3423 our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); 3423 our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size);
3424 3424
3425 if (our_fcs != rcv_fcs) 3425 if (our_fcs != rcv_fcs)
3426 return -EINVAL; 3426 return -EBADMSG;
3427 } 3427 }
3428 return 0; 3428 return 0;
3429} 3429}