[PATCH AUTOSEL 5.11 33/44] thermal/core: Add NULL pointer check before using cooling device stats