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