Re: [PATCH v2] drm/vc4: hvs/v3d: Fix null dereference in unbind
From: Maíra Canal
Date: Wed Jul 22 2026 - 10:46:43 EST
On Tue, 21 Jul 2026 17:38:19 +0200, Gregor Herburger wrote:
> The hvs and v3d drivers use dev_get_drvdata(master) in their unbind
> functions. Since the vc4-drm gets removed before its dependent drivers
> (vc4_hvs/vc4_v3d) the vc4_hvs_unbind/vc4_v3d_unbind functions try to
> get drvdata of its master and fails with a null dereference error.
>
> Use the data pointer passed to the unbind functions directly instead of
> dev_get_drvdata(master). This avoids using potentially freed memory.
>
> [...]
Applied, thanks!
[1/1] drm/vc4: hvs/v3d: Fix null dereference in unbind
commit: 7dc3680b7ffe01add3e9299fde8471d2dd53a8ae
Best regards,
- Maíra