summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
diff options
context:
space:
mode:
authorSimon Horman <horms@kernel.org>2024-08-13 17:32:55 +0300
committerJakub Kicinski <kuba@kernel.org>2024-08-15 06:36:16 +0300
commitffff7ee843c351ce71d6e0d52f0f20bea35e18c9 (patch)
treed6d7d066bead7e34178096cb32d1a968649ec138 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
parent2984e69a24affc8e5624069b7bb44593e09037e8 (diff)
downloadlinux-ffff7ee843c351ce71d6e0d52f0f20bea35e18c9.tar.xz
bnxt_en: Extend maximum length of version string by 1 byte
This corrects an out-by-one error in the maximum length of the package version string. The size argument of snprintf includes space for the trailing '\0' byte, so there is no need to allow extra space for it by reducing the value of the size argument by 1. Found by inspection. Compile tested only. Signed-off-by: Simon Horman <horms@kernel.org> Reviewed-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20240813-bnxt-str-v2-1-872050a157e7@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h')
0 files changed, 0 insertions, 0 deletions