drm/amd/ras: Add null check to prevent null pointer exception

Add null check to prevent null pointer exception.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
YiPeng Chai 2026-04-29 13:46:54 +08:00 • committed by Alex Deucher
commit 5a72a85cd5