[PATCH 5.18 0049/1095] thermal: sysfs: Fix cooling_device_stats_setup() error code path