Commit eb73b5a
committed
Bluetooth: hci_event: Fix sending MGMT_EV_DEVICE_FOUND for invalid address
This fixes sending MGMT_EV_DEVICE_FOUND for invalid address
(00:00:00:00:00:00) which is a regression introduced by
a2ec905 ("Bluetooth: fix kernel oops in store_pending_adv_report")
since in the attempt to skip storing data for extended advertisement it
actually made the code to skip the entire if statement supposed to send
MGMT_EV_DEVICE_FOUND without attempting to use the last_addr_adv which
is garanteed to be invalid for extended advertisement since we never
store anything on it.
Link: bluez/bluez#1157
Link: bluez/bluez#1149 (comment)
Fixes: a2ec905 ("Bluetooth: fix kernel oops in store_pending_adv_report")
Signed-off-by: Luiz Augusto von Dentz <[email protected]>1 parent eaa517b commit eb73b5a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6160 | 6160 | | |
6161 | 6161 | | |
6162 | 6162 | | |
6163 | | - | |
| 6163 | + | |
6164 | 6164 | | |
6165 | 6165 | | |
6166 | 6166 | | |
6167 | | - | |
| 6167 | + | |
| 6168 | + | |
6168 | 6169 | | |
6169 | 6170 | | |
6170 | 6171 | | |
| |||
0 commit comments