drm/amdkfd: Fix for possible integer overflow
authorDavid Yat Sin <david.yatsin@amd.com>
Fri, 18 Feb 2022 22:53:43 +0000 (17:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Feb 2022 19:02:50 +0000 (14:02 -0500)
commit8f7519b2f3a93f6eae76912be66188366cc47aed
treecbfce567c2021e20a8888844eccef745fe5b6a89
parentf113cc32e35b5503b268f0bd891fa2b7d6d12137
drm/amdkfd: Fix for possible integer overflow

Fix for possible integer overflow when doing addition.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Yat Sin <david.yatsin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c