[PATCH 4.14 20/75] thermal/core: Potential buffer overflow in thermal_build_list_of_policies()