]> git.baikalelectronics.ru Git - kernel.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)
commitbadb9ef29f72ad880a25794d56661f0e3059d1aa
treea747e4a13935ddcddbf5065a04cc8baf265a060d
parent5b3a42ea1a85616a63f9eb25bb3f5367bdfa48ce
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