Bluetooth: L2CAP: Don't return -EAGAIN if out of credits
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 3 Apr 2017 14:48:57 +0000 (17:48 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:40 +0000 (22:02 +0200)
commit03732141bf23378b31e266a1da5a8f51f9e35cbe
tree26eb6bd668fcdf6cd2c60cdffe147fdb765090e3
parentda75fdc6bdccaf99220757cd1ac33cec72cfebb1
Bluetooth: L2CAP: Don't return -EAGAIN if out of credits

Just keep queueing them into TX queue since the caller might just have
to do the same and there is no impact in adding another packet to the
TX queue even if there aren't any credits to transmit them.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c