[PATCH 4.19 28/95] thermal/core: Potential buffer overflow in thermal_build_list_of_policies()