amdkfd: use calloc instead of kzalloc to avoid integer overflow
authorjsg <jsg@openbsd.org>
Mon, 15 Apr 2024 01:40:36 +0000 (01:40 +0000)
committerjsg <jsg@openbsd.org>
Mon, 15 Apr 2024 01:40:36 +0000 (01:40 +0000)
commitb492a60185cbbeaca4d897e03d274be0207d8a6f
tree990c38524761a4abc037baa8a56555e5ef6803d5
parent7019ae976ad91f2bc281f67a336deb30aa8168c1
amdkfd: use calloc instead of kzalloc to avoid integer overflow

From Dave Airlie
315eb3c2df7e4cb18e3eacfa18a53a46f2bf0ef7 in linux-6.6.y/6.6.27
3b0daecfeac0103aba8b293df07a0cbaf8b43f29 in mainline linux
sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c