[PATCH openEuler-22.03-LTS 7/7] PM: sleep: Fix error handling in dpm_prepare()