[PATCH 6.5 072/491] drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL