On Mon, Aug 04, 2025 at 10:20:21AM +0800, Haoxiang Li wrote:
> Add check for the return value of kstrdup_const() in drm_managed.c
> to prevent potential null pointer dereference.
>
> Fixes: c6603c740e0e ("drm: add managed resources tied to drm_device")
> Cc: [email protected]
> Signed-off-by: Haoxiang Li <[email protected]>
> ---
> Changes in v2:
> - Modify a fix error. Thanks, Dmitry!
> ---
> drivers/gpu/drm/drm_managed.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <[email protected]>
--
With best wishes
Dmitry