drm/amdgpu: don't allocate zero sized kernel BOs
authorChristian König <christian.koenig@amd.com>
Fri, 14 Sep 2018 19:03:37 +0000 (21:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:36:50 +0000 (12:36 -0500)
commit21a7e77f77b348e73c9c67064a545e724c4a0c9a
tree8f5abf217468e2c199c5bc0c1d3d25f064c1769a
parent3b2de69944cfac8bc8f43c81aeadcbefc31ed48e
drm/amdgpu: don't allocate zero sized kernel BOs

Just free the BO if the size should be zero.

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