Bluetooth: Fix disconnecting L2CAP when a credits overflow occurs
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 27 Jan 2014 23:11:35 +0000 (15:11 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:38 +0000 (09:51 +0200)
commit0f1bfe4e5eb8db9841b57ade1384b9a8ffcd38c3
tree4cd9320657333f77e9e348f41c7ec8aaa646d713
parentdfd9774c5ad4abe9d51e52056e441eaf983b9080
Bluetooth: Fix disconnecting L2CAP when a credits overflow occurs

The L2CAP specification requires us to disconnect an L2CAP channel if
the remote side gives us credits beyond 65535. This patch makes sure we
disconnect the channel in such a situation.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c