intel / thermal_daemon

Thermal daemon for IA
GNU General Public License v2.0
540 stars 117 forks source link

Ensure there is one trips element per zone #360

Closed cavedon closed 2 years ago

cavedon commented 2 years ago

In some cases a trip element was not added for every zone, causing an out-of-bound access to the trips vector (which is indexed by zone number).

In this change we ensure that a (possinly empty) trips element is added for each zone.