Dave Airlie e6721ea845 amdkfd: use calloc instead of kzalloc to avoid integer overflow
commit 3b0daecfeac0103aba8b293df07a0cbaf8b43f29 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>
2024-04-13 12:50:17 +02:00
..
2023-09-23 10:48:09 +02:00
2024-04-13 12:50:06 +02:00
2023-11-20 10:29:18 +01:00
2024-02-23 08:12:44 +01:00
2024-01-25 14:33:30 -08:00
2023-08-11 11:45:11 +02:00