]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit083645731f1ca982d53c7c3330c25dd709948144
tree8f5abf217468e2c199c5bc0c1d3d25f064c1769a
parenta916192f7fb650bc011d7137ac597f1fc152500c
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