[PATCH 6.1 340/568] drm/amdgpu: Fix NULL pointer dereference in VRAM logic for APU devices