[PATCH 5.15 042/779] thermal: sysfs: Fix cooling_device_stats_setup() error code path