[PATCH 5.10 004/135] drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL