(subset) [PATCH 5/5] drm/vc4: kms: Fix IS_ERR() vs NULL check for vc4_kms
Maxime Ripard
maxime at cerno.tech
Thu Nov 10 11:46:10 UTC 2022
On Thu, 10 Nov 2022 17:44:45 +0800, Gaosheng Cui wrote:
> The drm_atomic_get_new_private_obj_state() function returns NULL
> on error path, drm_atomic_get_old_private_obj_state() function
> returns NULL on error path, too, they does not return error pointers.
>
> By the way, vc4_hvs_get_new/old_global_state() should return
> ERR_PTR(-EINVAL), otherwise there will be null-ptr-defer issue,
> such as follows:
>
> [...]
Applied to drm/drm-misc (drm-misc-fixes).
Thanks!
Maxime
More information about the dri-devel
mailing list