diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2021-12-10 07:41:24 +0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-12-13 07:55:37 +0300 |
commit | 87bb2a410dcfb617b88e4695edf4beb6336dc314 (patch) | |
tree | 9df4f2d77894d9999dba8ecd4de74ff3eb52f94d /tools/perf/scripts/python/syscall-counts.py | |
parent | 6306d8dbfae6abbc049cb92fc7cf2acbcd983f8d (diff) | |
download | linux-87bb2a410dcfb617b88e4695edf4beb6336dc314.tar.xz |
drm/i915/display: Fix an unsigned subtraction which can never be negative.
smatch warning:
drivers/gpu/drm/i915/display/intel_dmc.c:601 parse_dmc_fw() warn:
unsigned 'fw->size - offset' is never less than zero
Firmware size is size_t and offset is u32. So the subtraction is
unsigned which can never be less than zero.
Fixes: 3d5928a168a9 ("drm/i915/xelpd: Pipe A DMC plugging")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211210044129.12422-1-harshit.m.mogalapalli@oracle.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions