]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check that bind() bdaddr type matches connect()
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 18:17:53 +0000 (21:17 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 18:26:21 +0000 (11:26 -0700)
commit89ab9dee88905a0c88cbf41cb83a5efcb5b96cd4
treeda1624cca46f1ffe5e7821258673d8b333fa7f8e
parentbadb9ef29f72ad880a25794d56661f0e3059d1aa
Bluetooth: Check that bind() bdaddr type matches connect()

If a socket was bound to an address type other than BR/EDR (such as LE)
we should reject trying to connect it to a BR/EDR address. The same
applies for binding to BR/EDR and trying to connect to non-BR/EDR.

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