[PATCH 5.14 279/849] thermal/core: Fix null pointer dereference in thermal_release()