[PATCH openEuler-5.10-LTS 122/559] thermal: int340x: Check for NULL after calling kmemdup()