diff options
author | Jani Nikula <[email protected]> | 2018-02-14 19:38:40 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2018-02-15 16:29:13 +0200 |
commit | cdb3db8542d854bd678d60cd28861b042e191672 (patch) | |
tree | d32160387b13f7180188066148fdace870d27162 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | ccf74400da4d7c94307ac24e7398337d9c4312d9 (diff) |
drm/i915/audio: fix check for av_enc_map overflow
Turns out -1 >= ARRAY_SIZE() is always true. Move the bounds check where
we know pipe >= 0 and next to the array indexing where it makes most
sense.
Fixes: 9965db26ac05 ("drm/i915: Check for fused or unused pipes")
Fixes: 0b7029b7e43f ("drm/i915: Check for fused or unused pipes")
Cc: <[email protected]> # v4.10+
Cc: Mika Kahola <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: [email protected]
Reviewed-by: Dhinakaran Pandiyan <[email protected]>
Reviewed-by: Mika Kahola <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions