Re: [PATCH AUTOSEL 6.1 13/14] drm/amdgpu: fix dereference null return value for the function amdgpu_vm_pt_parent

From: Christian König
Date: Tue Jun 18 2024 - 07:57:06 EST


Am 18.06.24 um 11:11 schrieb Pavel Machek:
Hi!

[ Upstream commit a0cf36546cc24ae1c95d72253c7795d4d2fc77aa ]

The pointer parent may be NULLed by the function amdgpu_vm_pt_parent.
To make the code more robust, check the pointer parent.
If this can happen, it should not WARN().

If this can not happen, we don't need the patch in stable.

Right, that patch shouldn't be backported in any way.

Regards,
Christian.


Best regards,
Pavel