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