]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: Annotate struct hci_drv_rp_read_info with __counted_by_le()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 10 Aug 2025 21:53:20 +0000 (23:53 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 27 Sep 2025 15:37:00 +0000 (11:37 -0400)
commitd4e99db3d942c8099006f3b7536bc52f766b475a
treed3639117352ba0e8e4328cdde6dadfe2a336d071
parent3e94262921990e2884ff7a49064c12fb6d3a0733
Bluetooth: Annotate struct hci_drv_rp_read_info with __counted_by_le()

Add the __counted_by_le() compiler attribute to the flexible array
member 'supported_commands' to improve access bounds-checking via
CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_drv.h