]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Reject invalid bdaddr types for sockets
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 18:17:52 +0000 (21:17 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 18:26:21 +0000 (11:26 -0700)
commit80c1a2e76dbb36588facb265ab364b1302f7ef8c
treea747e4a13935ddcddbf5065a04cc8baf265a060d
parentbfaf8c9ff17a256fe435d452e8ff5a515155ee3b
Bluetooth: Reject invalid bdaddr types for sockets

We need to verify that the bdaddr type passed to connect() and bind() is
within the set of valid values. If it is not we need to cleanly fail
with EINVAL.

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