thermal: Fix NULL pointer dereferences in ofthermal functions
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.10.81 by commit 6a315471cb6a07f651e1d3adc8962730f4fcccac. For more details please see the references link.