diff options
author | João Paulo Rechi Vita <jprvita@profusion.mobi> | 2010-06-22 13:56:27 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-21 10:39:10 -0700 |
commit | 7a560e5c99dc5f03e2c0dbe05ed20008af5d0bcf (patch) | |
tree | 0af928fa6f0d4ef6a612816036ab060f575c2eaa /net | |
parent | 57d3b22bf56579bb1ab2d6f5020d372c99a7afae (diff) | |
download | lwn-7a560e5c99dc5f03e2c0dbe05ed20008af5d0bcf.tar.gz lwn-7a560e5c99dc5f03e2c0dbe05ed20008af5d0bcf.zip |
Bluetooth: Fix error value for wrong FCS.
Signed-off-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
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) our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); if (our_fcs != rcv_fcs) - return -EINVAL; + return -EBADMSG; } return 0; } |