]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm/dpu: Add missing NULL pointer check for pingpong interface
authorNikolay Kuratov <kniv@yandex-team.ru>
Thu, 11 Dec 2025 09:36:30 +0000 (12:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:55 +0000 (10:14 +0100)
commit471baae774a30a04cf066907b60eaf3732928cb7
tree82414f0140f0eb5ca5c0b5d381364ac82fee879f
parent700cd81dc5af265d8a3dfc5be5366ac59119c9bd
drm/msm/dpu: Add missing NULL pointer check for pingpong interface

commit 88733a0b64872357e5ecd82b7488121503cb9cc6 upstream.

It is checked almost always in dpu_encoder_phys_wb_setup_ctl(), but in a
single place the check is missing.
Also use convenient locals instead of phys_enc->* where available.

Cc: stable@vger.kernel.org
Fixes: d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")
Signed-off-by: Nikolay Kuratov <kniv@yandex-team.ru>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/693860/
Link: https://lore.kernel.org/r/20251211093630.171014-1-kniv@yandex-team.ru
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c