diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2021-12-09 20:41:24 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2021-12-14 04:11:10 -0500 |
commit | 53b3495273282aa844c4613d19c3b30558c70c84 (patch) | |
tree | d5bcaa6e13c082e4950a1f6931b5104dd1525e2b /fs/ramfs | |
parent | 2585cf9dfaaddf00b069673f27bb3f8530e2039c (diff) |
drm/i915/display: Fix an unsigned subtraction which can never be negative.drm-intel-fixes-2021-12-15
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
(cherry picked from commit 87bb2a410dcfb617b88e4695edf4beb6336dc314)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'fs/ramfs')
0 files changed, 0 insertions, 0 deletions