[PATCH 5.14 100/162] thermal/core: Potential buffer overflow in thermal_build_list_of_policies()