amdkfd: use calloc instead of kzalloc to avoid integer overflow

commit 3b0daecfea upstream.

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

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dave Airlie 2024-04-12 06:11:25 +10:00 • committed by Greg Kroah-Hartman
commit 315eb3c2df