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

From: Sasha Levin
Date: Mon Jul 22 2024 - 08:56:19 EST


On Tue, Jun 18, 2024 at 01:42:56PM +0200, Christian König wrote:
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.

I'll drop it, thanks!

--
Thanks,
Sasha