diff options
| author | 2026-10-23 17:19:10 -0400 | |
|---|---|---|
| committer | 2026-11-02 17:09:01 -0500 | |
| commit | 1eebde8ecede18e351ccf438f17b53d3b62a75a9 (patch) | |
| tree | 52813f5fbf3ac5f922e9109297bfebb790fe413d /scripts/Makefile.thinlto | |
| parent | Bluetooth: hci_event: Clear explicit connect state on LE connection (diff) | |
Bluetooth: hci_core: Convert hci_conn flags to a bitmap
struct hci_conn stores its flags in a single unsigned long, but the
HCI_CONN_* enum already has 33 entries (up to HCI_CONN_PA_SYNC_FAILED
= 32), so on 32-bit architectures set_bit()/test_bit() on the highest
flags access memory past the flags field, aliasing the adjacent
conn_reason field.
Fix this by declaring flags with DECLARE_BITMAP() sized by a new
__HCI_CONN_NUM_FLAGS terminator so it can accommodate any number of
flags.
Assisted-by: OpenCode:claude-opus-5.5
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
