Re: [PATCH 14/24] drm/amdkfd: Handle remaining BUG_ONs more gracefully v2

2017-08-16 Thread Oded Gabbay
On Wed, Aug 16, 2017 at 6:00 AM, Felix Kuehling wrote: > In most cases, BUG_ONs can be replaced with WARN_ON with an error > return. In some void functions just turn them into a WARN_ON and > possibly an early exit. > > v2: > * Cleaned up error handling in pm_send_unmap_queue > * Removed redundant

[PATCH 14/24] drm/amdkfd: Handle remaining BUG_ONs more gracefully v2

2017-08-15 Thread Felix Kuehling
In most cases, BUG_ONs can be replaced with WARN_ON with an error return. In some void functions just turn them into a WARN_ON and possibly an early exit. v2: * Cleaned up error handling in pm_send_unmap_queue * Removed redundant WARN_ON in kfd_process_destroy_delayed Signed-off-by: Felix Kuehlin