hwmon: (coretemp) Check for null before removing sysfs attrs
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.158 by commit f06e0cd01eab954bd5f2190c9faa79bb5357e05b, it was introduced in version v3.0 by commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace. For more details please see the references link.