]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix suspending the L2CAP socket if we start with 0 credits
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Oct 2013 12:44:48 +0000 (14:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:35 +0000 (07:05 -0800)
commit8b291ee2aa2d13127102c50c824cb7e9de6ff788
tree800d5ca871a647867c501ccfa8ab9bbc46fe5efe
parente8ae1d6ba33077ba70b0e7787e8ccd1600f180c3
Bluetooth: Fix suspending the L2CAP socket if we start with 0 credits

If the peer gives us zero credits in its connection request or response
we must call the suspend channel callback so the BT_SK_SUSPEND flag gets
set and user space is blocked from sending data to the socket.

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