[PATCH openEuler-1.0-LTS 29/30] sched/psi: Fix OOB write when writing 0 bytes to PSI files