Bluetooth: L2CAP: Check bearer type on __l2cap_global_chan_by_addr
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 3 Jun 2019 10:48:43 +0000 (13:48 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Jul 2019 13:38:18 +0000 (15:38 +0200)
commit00f62726dd8bb4554e219e38c51104c49bd31bef
tree1dbca45cf7fd2253bc94f5103109aab03bace466
parent1d0fac2c38edb25067e8f69195e2f76b67a2717d
Bluetooth: L2CAP: Check bearer type on __l2cap_global_chan_by_addr

The spec defines PSM and LE_PSM as different domains so a listen on the
same PSM is valid if the address type points to a different bearer.

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