[lvc-project] [PATCH] drm/nouveau/disp: Fix potential NULL pointer dereference in nouveau_dp_irq

Timur Tabi ttabi at nvidia.com
Mon Mar 16 20:42:57 MSK 2026


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?


More information about the lvc-project mailing list