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