Re: [PATCH] drm/nouveau/disp: Fix potential NULL pointer dereference in nouveau_dp_irq

From: Timur Tabi

Date: Mon Mar 16 2026 - 13:48:28 EST


On Mon, 2026-03-16 at 17:26 +0000, Alexey Nepomnyashih wrote:
> nouveau_dp_irq() dereferences the encoder pointer before verifying
> that it is valid. The drm pointer is initialized using
> outp->base.base.dev prior to the NULL check:
>
>   struct nouveau_drm *drm = nouveau_drm(outp->base.base.dev);
>
> If no encoder is associated with the connector, this leads to a
> NULL pointer dereference.

Can you provide an example of how/when this would be the case?