[PATCH openEuler-5.10 v2 201/548] power: reset: mt6397: Check for null res pointer