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)
commit9216ed294053be68a673754a0f8da88aa7fb7941
tree0c31b11678e3e122762ad535ea7af4478aa5d5c8
parentc2e1b3a496332b90d073bc9dddd3324d660fca24
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