[PATCH 4.14 374/496] tools/thermal: tmon: fix for segfault