Re: [PATCH] drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

2025-08-13 Thread Dmitry Baryshkov
On Wed, Jul 23, 2025 at 12:43:06PM -0700, Chenyuan Yang wrote: > On Wed, Jul 23, 2025 at 12:05 PM Dmitry Baryshkov > wrote: > > > > On Tue, Jul 22, 2025 at 04:17:40PM -0500, Chenyuan Yang wrote: > > > The drm_atomic_get_new_connector_state() can return NULL if the > > > connector is not part of th

Re: [PATCH] drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

2025-07-23 Thread Chenyuan Yang
On Wed, Jul 23, 2025 at 12:05 PM Dmitry Baryshkov wrote: > > On Tue, Jul 22, 2025 at 04:17:40PM -0500, Chenyuan Yang wrote: > > The drm_atomic_get_new_connector_state() can return NULL if the > > connector is not part of the atomic state. Add a check to prevent > > a NULL pointer dereference. > >

Re: [PATCH] drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

2025-07-23 Thread Dmitry Baryshkov
On Tue, Jul 22, 2025 at 04:17:40PM -0500, Chenyuan Yang wrote: > The drm_atomic_get_new_connector_state() can return NULL if the > connector is not part of the atomic state. Add a check to prevent > a NULL pointer dereference. > > This follows the same pattern used in dpu_encoder_update_topology()

[PATCH] drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset

2025-07-22 Thread Chenyuan Yang
The drm_atomic_get_new_connector_state() can return NULL if the connector is not part of the atomic state. Add a check to prevent a NULL pointer dereference. This follows the same pattern used in dpu_encoder_update_topology() within the same file, which checks for NULL before using conn_state. Si