[PATCH 6.6 386/529] drm/amdgpu: Fix NULL pointer dereference in VRAM logic for APU devices