drm/amdgpu: handle bo size 0 in amdgpu_bo_create_kernel_at (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jul 2020 21:38:29 +0000 (17:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:29:28 +0000 (17:29 -0400)
commit37912e963dadcc831dd2a766780ff0b8738773d8
treedad2035ffcb7f747b821fab8f08706704c58dc52
parent66f3db4ba62db74d0f6c5a0f872592f1a0ed7670
drm/amdgpu: handle bo size 0 in amdgpu_bo_create_kernel_at (v2)

Just return early to match other bo_create functions.

v2: check if the bo_ptr is NULL rather than checking the size.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c