]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Fix EBUSY condition test in l2cap_chan_connect
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 29 Apr 2013 16:35:37 +0000 (19:35 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 3 May 2013 19:09:42 +0000 (16:09 -0300)
commit293732db00cc946c44160cc45e402d83f159df0a
treefef9405b76a42107602926d023d7407cd140a0f5
parentc32bde00c655c3166706c1fce26cea88508ec759
Bluetooth: Fix EBUSY condition test in l2cap_chan_connect

The current test in l2cap_chan_connect is intended to protect against
multiple conflicting connect attempts. However, it assumes that there
will ever only be a single CID that is connected to, which is not true.
We do need to check for conflicts with connect attempts to the same
destination CID but this check is not in anyway specific to LE but can
be applied to BR/EDR as well.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c