drm/vc4: Validate the size of the gamma_lut
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 10 Nov 2021 16:36:12 +0000 (16:36 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:30 +0000 (16:04 +0000)
commitce8a8745a572326ac06f181be1fd4b2a611b83eb
tree2855d0ddf28b96c71badcf49c67946880c8c4685
parent2e89ca072a44c23d1696f9352b2dbba5f59ed123
drm/vc4: Validate the size of the gamma_lut

Add a check to vc4_hvs_gamma_check to ensure a new non-empty
gamma LUT is of the correct length before accepting it.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hvs.c