summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-10-23 17:19:10 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-11-02 17:09:01 -0500
commit1eebde8ecede18e351ccf438f17b53d3b62a75a9 (patch)
tree52813f5fbf3ac5f922e9109297bfebb790fe413d /rust/kernel/alloc
parentf5cd268af1c6f87fb3847e98274e22b8c6324aa4 (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 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions