drm: Fix double free from checking if gamma lut has been updated
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 8 Nov 2021 13:55:15 +0000 (13:55 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 15 Nov 2021 20:07:54 +0000 (20:07 +0000)
commitfb27937bd83e511bd2a89e5db3ab81f0f7c8209a
treee906edc4bb43a9213edb4f7112f8c584a3f6aff8
parent20c603213e9c212930a49e86beaf66c8b2c9f49c
drm: Fix double free from checking if gamma lut has been updated

The code falls through to "fail" under all conditions, so there is no
need for the drm_property_blob_put if the gamma lut hasn't been changed.
Fixes: 9cca26674a2b "drm: Check whether the gamma lut has changed before updating"

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