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.4.226 by commit 89eecabe6a47403237f45aafd7d24f93cb973653, it was introduced in version v3.0 by commit 199e0de7f5df31a4fc485d4aaaf8a07718252ace. For more details please see the references link.