diff options
author | Arnd Bergmann <[email protected]> | 2021-09-27 13:36:23 +0200 |
---|---|---|
committer | Rob Clark <[email protected]> | 2021-10-01 14:47:23 -0700 |
commit | 95c58291ee709424557996891926a05a32c5b13a (patch) | |
tree | 240e9c8c3dd1b973d6677e77a50471c1ce143ea2 /scripts/gdb/linux/symbols.py | |
parent | 68002469e571ae3db095e4ade1cfef64903f8fa1 (diff) |
drm/msm/submit: fix overflow check on 64-bit architectures
The overflow check does causes a warning from clang-14 when 'sz' is a type
that is smaller than size_t:
drivers/gpu/drm/msm/msm_gem_submit.c:217:10: error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (sz == SIZE_MAX) {
Change the type accordingly.
Fixes: 20224d715a88 ("drm/msm/submit: Move copy_from_user ahead of locking bos")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions