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, 15 Nov 2021 20:07:54 +0000 (20:07 +0000)
commit166076944f82ee319aab870127218bdfb28f81f1
treebee38feef2985770d92dd62a050d5b329d5557ef
parent2a14e707db7942cd59d106cd8d815d1a50e28930
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