aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-06-19 19:42:45 +0000
committerJohan Hovold <[email protected]>2024-07-05 12:01:43 +0000
commitdf8c0b8a03e871431587a13a6765cb4c601e1573 (patch)
treece46c80dc8dca02d2394bdb6bbbb2dd177565250 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentUSB: serial: garmin_gps: annotate struct garmin_packet with __counted_by (diff)
downloadkernel-df8c0b8a03e871431587a13a6765cb4c601e1573.tar.gz
kernel-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 <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions