]> git.baikalelectronics.ru Git - kernel.git/commit
drm/komeda: return early if drm_universal_plane_init() fails.
authorLiviu Dudau <liviu.dudau@arm.com>
Thu, 2 Dec 2021 17:00:33 +0000 (17:00 +0000)
committerLiviu Dudau <liviu.dudau@arm.com>
Mon, 11 Apr 2022 17:30:18 +0000 (18:30 +0100)
commit29f6337718026534039cb618b984f04ae1bb8d9d
tree754131460d57d5a861374c77020e0ea00afcd319
parent614cba8ffdeab9685649593cd1de342599398b58
drm/komeda: return early if drm_universal_plane_init() fails.

If drm_universal_plane_init() fails early we jump to the common cleanup code
that calls komeda_plane_destroy() which in turn could access the uninitalised
drm_plane and crash. Return early if an error is detected without going through
the common code.

Reported-by: Steven Price <steven.price@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/dri-devel/20211203100946.2706922-1-liviu.dudau@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_plane.c