diff options
| author | Chris Wilson <[email protected]> | 2019-01-16 15:54:21 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-01-17 21:10:52 +0000 |
| commit | 1b4bd5c4a663663e8dd4b7b1c5f8565626eb068b (patch) | |
| tree | dc25a4080d33c950bc11fa53636673a27eb58002 /tools/perf/scripts/python/sctop.py | |
| parent | c4aa2eca319c99a4dd21d10ebfd462a2612175f1 (diff) | |
drm/i915: Limit the for_each_set_bit() to the valid range
Let static analyzers (smatch) know that we are not going to wander off
the end of the array by providing a tight upper bound:
drivers/gpu/drm/i915/intel_display.c:9532 hsw_get_transcoder_state() error: buffer overflow 'dev_priv->__info.trans_offsets' 6 <= 31
References: 0716931a82b4 ("drm/i915/icl: fix transcoder state readout")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Ville Syrjala <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Madhav Chauhan <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions