platform/chrome: chromeos_laptop: Use kmemdup_array
authorYu Jiaoliang <yujiaoliang@vivo.com>
Fri, 23 Aug 2024 02:40:56 +0000 (10:40 +0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 23 Aug 2024 13:48:43 +0000 (21:48 +0800)
commitd1b35e6d34e9b46fbf98444dd7aa114c032e9ac0
tree0f717b732f53edf3116f3fd8d3b67e77f1710521
parenta1927fbbf74f9f61eb5c6d1414037c97a8d942ab
platform/chrome: chromeos_laptop: Use kmemdup_array

Let the kememdup_array() take care about multiplication and possible
overflows.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Link: https://lore.kernel.org/r/20240823024056.3031644-1-yujiaoliang@vivo.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/chromeos_laptop.c