diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-06-19 21:42:45 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2024-07-05 14:01:43 +0200 |
commit | df8c0b8a03e871431587a13a6765cb4c601e1573 (patch) | |
tree | ce46c80dc8dca02d2394bdb6bbbb2dd177565250 /tools/perf/scripts/python/task-analyzer.py | |
parent | 55a15b3a713a3f24360cf9d8dcfd2a3e337321d6 (diff) |
USB: serial: garmin_gps: use struct_size() to allocate pkt
Use the struct_size macro to calculate the size of the pkt, which
includes a trailing flexible array.
Suggested-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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions