Bluetooth: Fix SREJ_QUEUE corruption in L2CAP
authorJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Mon, 31 May 2010 21:35:44 +0000 (18:35 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:04 +0000 (10:39 -0700)
commitbfbacc11550a785caf082f3ccfcd7ecf882e09a4
tree82ec0b4aa7003884a0dec27f944db0647fd1e028
parent6e2b6722abaa3f6042357e11f465488b7c12f94c
Bluetooth: Fix SREJ_QUEUE corruption in L2CAP

Since all TxSeq values are modulo, we shall not compare them directly. We
have to compare their offset inside the TxWindow instead.

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>
net/bluetooth/l2cap.c