aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorHarry Wentland <[email protected]>2023-11-08 11:36:24 -0500
committerMelissa Wen <[email protected]>2024-01-02 12:06:53 -0100
commit2fee84030d12d9fddfa874e4562d71761a129277 (patch)
tree7b6c3651e8f72cff64a0b5465c2b14e2c0ca985e /lib/memory-notifier-error-inject.c
parentffcc67cd79ff2e93fd0bdb837c99cbab6c59d38c (diff)
drm/vkms: Avoid reading beyond LUT array
When the floor LUT index (drm_fixp2int(lut_index) is the last index of the array the ceil LUT index will point to an entry beyond the array. Make sure we guard against it and use the value of the floor LUT index. v3: - Drop bits from commit description that didn't contribute anything of value Fixes: db1f254f2cfa ("drm/vkms: Add support to 1D gamma LUT") Signed-off-by: Harry Wentland <[email protected]> Cc: Arthur Grillo <[email protected]> Reviewed-by: Arthur Grillo <[email protected]> Reviewed-by: Melissa Wen <[email protected]> Signed-off-by: Melissa Wen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions