]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix device_found event length for remote name resolving
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 3 Feb 2012 22:06:00 +0000 (00:06 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:35 +0000 (17:01 +0200)
commitbf52b75847263140112aa49e8c5b3e71a278a323
tree11017e93d2bd532e745e53b240769a9b0f235b59
parentbf00cfb4ee79b5b5b9e145180e5d9eb332685dc9
Bluetooth: Fix device_found event length for remote name resolving

The correct length of the event is the size of the ev struct (not size
of the pointer like the code was previously using) plus the length of
the variable-sized EIR data at the end of the struct.

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