[PATCH 6.12 326/414] cpufreq/amd-pstate: Add missing NULL ptr check in amd_pstate_update