Skip to content
Commit e3d982c1 authored by Daniel Mack's avatar Daniel Mack Committed by Greg Kroah-Hartman
Browse files

drm/panel: ili9341: fix optional regulator handling

commit d14eb80e upstream.

If the optional regulator lookup fails, reset the pointer to NULL.
Other functions such as mipi_dbi_poweron_reset_conditional() only do
a NULL pointer check and will otherwise dereference the error pointer.

Fixes: 5a042273

 ("drm/panel: Add ilitek ili9341 panel driver")
Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220317225537.826302-1-daniel@zonque.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc47bf7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment