diff options
author | 2024-06-19 21:42:45 +0200 | |
---|---|---|
committer | 2024-07-05 14:01:43 +0200 | |
commit | df8c0b8a03e871431587a13a6765cb4c601e1573 (patch) | |
tree | ce46c80dc8dca02d2394bdb6bbbb2dd177565250 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | USB: serial: garmin_gps: annotate struct garmin_packet with __counted_by (diff) | |
download | wireguard-linux-df8c0b8a03e871431587a13a6765cb4c601e1573.tar.xz wireguard-linux-df8c0b8a03e871431587a13a6765cb4c601e1573.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions