]> git.ipfire.org Git - thirdparty/linux.git/commit
USB: serial: garmin_gps: annotate struct garmin_packet with __counted_by
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Wed, 19 Jun 2024 19:42:44 +0000 (21:42 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 5 Jul 2024 12:00:11 +0000 (14:00 +0200)
commit55a15b3a713a3f24360cf9d8dcfd2a3e337321d6
tree6ac944ff34fc9ee11b06808fd4478e4499e09f86
parent9f4dc05107a6db3743e6b9ea4014cbdc3795682d
USB: serial: garmin_gps: annotate struct garmin_packet with __counted_by

Use the __counted_by compiler attribute for the data[] flexible array
member to improve the results of array bound sanitizers.

Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/garmin_gps.c