]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:28 +0000 (13:07 +0200)
commit315eb3c2df7e4cb18e3eacfa18a53a46f2bf0ef7
tree57969c7b59a718af8cfc71d8fc05d70fc1063bb0
parent0ccfb8e07e797d57830f3008028de56e22de6e0b
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>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c