thermal/core: fix error code in _thermalcoolingdeviceregister()
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.15.91 by commit ed08f958e481268a755b30e91958a821d0f55586, it was introduced in version v5.15.91 by commit 108a6f91e2766a6d9142b1f2d90c07ac547eae7e. For more details please see the references link.