[openEuler-5.10-LTS 030/501] thermal: sysfs: Fix cooling_device_stats_setup() error code path