]> 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:17:20 +0000 (10:17 +0100)
commit35ea3282136a630a3fd92b76f5a3a02651145ef1
tree7b9154617f4732e2ff2b47f2c57bc54d35ce8489
parent8d9df6d3fa49c18547896d16a5414a09c0c386b0
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