Bluetooth: Check for valid bdaddr in add_remote_oob_data
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 23 Jan 2015 08:10:38 +0000 (10:10 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 23 Jan 2015 17:59:30 +0000 (18:59 +0100)
commit5d57e7964c3261827cc718b0e5317ac4950e2f21
tree9e4c4bdd5cc3bc4af997005e252d9c6035b29f2f
parented93ec69c7e0e80d733dced5b73af0f23cc3b061
Bluetooth: Check for valid bdaddr in add_remote_oob_data

Before doing any other verifications, the add_remote_oob_data function
should first check that the given address is valid. This patch adds such
a missing check to the beginning of the function.

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