]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Don't BUG on freeing GART sub-allocation
authorOded Gabbay <oded.gabbay@amd.com>
Mon, 12 Jan 2015 20:34:21 +0000 (22:34 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 12 Jan 2015 20:34:21 +0000 (22:34 +0200)
commit6b84cb692b7a22695dbbf15afb0ce1153940130f
tree0c31b11678e3e122762ad535ea7af4478aa5d5c8
parent38a7cce1ad75b5fe2a4aad6e66043f0198f95aee
drm/amdkfd: Don't BUG on freeing GART sub-allocation

Instead of creating a BUG if trying to free a NULL GART sub-allocation object,
just return 0 (success).

This is done to mirror behavior of kfree.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c