Commit 130c7ed8 authored by Yunshui Jiang's avatar Yunshui Jiang Committed by Alex Deucher
Browse files

drm/amdgpu: use kmalloc_array() instead of kmalloc()



Use kmalloc_array() instead of kmalloc() with multiplication.
kmalloc_array() is a safer way because of its multiply overflow check.

Signed-off-by: default avatarYunshui Jiang <jiangyunshui@kylinos.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 46b0e6b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment