]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: L2CAP: Fix setting chan src info before adding PSM/CID
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 26 Jan 2016 22:19:11 +0000 (17:19 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 29 Jan 2016 10:47:24 +0000 (11:47 +0100)
commit89eee84bd34424d379937ee95ee912f4849b065b
tree5f83f8fd0aca1810950959d31c1e37f96dce4f0c
parent8f2642a9b81e94d0a998e8bd8f3e58d14ef36674
Bluetooth: L2CAP: Fix setting chan src info before adding PSM/CID

At least the l2cap_add_psm() routine depends on the source address
type being properly set to know what auto-allocation ranges to use, so
the assignment to l2cap_chan needs to happen before this.

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