From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Sender: "Gustavo F. Padovan" From: "Gustavo F. Padovan" To: linux-bluetooth@vger.kernel.org Cc: jprvita@profusion.mobi, gustavo@padovan.org, marcel@holtmann.org Subject: [PATCH 07/13] Bluetooth: Only check SAR bits if frame is I-frame Date: Mon, 31 May 2010 14:02:46 -0300 Message-Id: <1275325372-5671-7-git-send-email-padovan@profusion.mobi> In-Reply-To: <1275325372-5671-6-git-send-email-padovan@profusion.mobi> References: <1275325372-5671-1-git-send-email-padovan@profusion.mobi> <1275325372-5671-2-git-send-email-padovan@profusion.mobi> <1275325372-5671-3-git-send-email-padovan@profusion.mobi> <1275325372-5671-4-git-send-email-padovan@profusion.mobi> <1275325372-5671-5-git-send-email-padovan@profusion.mobi> <1275325372-5671-6-git-send-email-padovan@profusion.mobi> List-ID: Signed-off-by: Gustavo F. Padovan --- 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 97584d8..7a8454a 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -4122,7 +4122,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk if (l2cap_check_fcs(pi, skb)) goto drop; - if (__is_sar_start(control)) + if (__is_sar_start(control) && __is_iframe(control)) len -= 2; if (pi->fcs == L2CAP_FCS_CRC16) -- 1.6.4.4