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 v6.1.9 by commit d4dbbbbb2449375cb893f1bad94d1a5a89be3469, it was introduced in version v6.1.9 by commit 80bb3b901abe6560620505e5c734d140c4f73a07. For more details please see the references link.