]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: ili9341: fix optional regulator handling
authorDaniel Mack <daniel@zonque.org>
Thu, 17 Mar 2022 22:55:37 +0000 (23:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Mar 2022 10:08:42 +0000 (11:08 +0100)
commit6b10e678e80541e75fee2fc6ee5f5f195cf84041
tree9dfa89f6c6b7cc0a506bff18de5a623f2a6056ee
parent3b67129bd2058b93eba23d7f149a8c1d671d6ee4
drm/panel: ili9341: fix optional regulator handling

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: 1cd67b63abaf093c ("drm/panel: Add ilitek ili9341 panel driver")
Signed-off-by: Daniel Mack <daniel@zonque.org>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220317225537.826302-1-daniel@zonque.org
drivers/gpu/drm/panel/panel-ilitek-ili9341.c