Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Oded Gabbay 121b78e679 drm/amdkfd: unbind only existing processes
When unbinding a process from a device (initiated by amd_iommu_v2), the
driver needs to make sure that process still exists in the process table.
There is a possibility that amdkfd's own notifier handler -
kfd_process_notifier_release() - was called before the unbind function
and it already removed the process from the process table.

v2:
Because there can be only one process with the specified pasid, and
because *p can't be NULL inside the hash_for_each_rcu macro, it is more
reasonable to just put the whole code inside the if statement that
compares the pasid value. That way, when we exit hash_for_each_rcu, we
simply exit the function as well.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
CC: Stable <stable@vger.kernel.org>
2016-06-03 08:50:40 +03:00
..
2016-05-21 07:03:31 +10:00
2016-05-21 07:03:31 +10:00
2016-05-21 07:03:31 +10:00
2016-03-14 09:46:02 +10:00
2016-06-01 14:59:44 +10:00
2016-05-27 15:26:11 -07:00
2016-05-09 13:49:56 +10:00
2015-09-30 10:44:48 +02:00
2016-05-21 07:03:31 +10:00
2015-09-30 10:44:48 +02:00
2016-05-06 16:04:48 +02:00