amdkfd: use calloc instead of kzalloc to avoid integer overflow
authorDave Airlie <airlied@redhat.com>
Thu, 11 Apr 2024 20:11:25 +0000 (06:11 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Apr 2024 01:11:59 +0000 (11:11 +1000)
commit3b0daecfeac0103aba8b293df07a0cbaf8b43f29
treea914344246e250cddf322f3056d2f397432e7b4c
parent6d8372713c6db77ce1f9ec163d37aa1b54d4a03e
amdkfd: use calloc instead of kzalloc to avoid integer overflow

This uses calloc instead of doing the multiplication which might
overflow.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c