]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix using address type from events
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 30 Aug 2021 20:55:36 +0000 (13:55 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 21:14:55 +0000 (23:14 +0200)
commite4f6fee2c7e90d8d333588d2dc9482fb1e341f78
tree6eda04c9efcf2e136a1fa9e68860cb3dd40cc738
parent3c8bb74b986422e8ac5813429a125197ed51306e
Bluetooth: Fix using address type from events

Address types ADDR_LE_DEV_PUBLIC_RESOLVED and
ADDR_LE_DEV_RANDOM_RESOLVED shall be converted to ADDR_LE_PUBLIC and
ADDR_LE_RANDOM repectively since they are not safe to be used beyond
the scope of the events themselves.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c