[PATCH 5.4 38/68] thermal/core: Potential buffer overflow in thermal_build_list_of_policies()