]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: btintel_pcie: Use struct_size to improve hci_drv_read_info
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 23 Feb 2026 23:33:42 +0000 (00:33 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 10 Apr 2026 14:24:01 +0000 (10:24 -0400)
commit9a9d21f780805fd6f950e930eeae437748d72793
treee96f18ddd1a1a321f57dc7fce8b90c69da7a099b
parent67377cd38b89ce782ccdb83bda3f65a2def843cd
Bluetooth: btintel_pcie: Use struct_size to improve hci_drv_read_info

Use struct_size(), which provides additional compile-time checks for
structures with flexible array members (e.g., __must_be_array()), to
determine the allocation size for a new 'struct hci_drv_rp_read_info'.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel_pcie.c