diff options
author | Oded Gabbay <oded.gabbay@amd.com> | 2015-04-16 17:08:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-06 08:20:47 -0700 |
commit | 9f453d6e25ac30a74af17975313604c71c5c599c (patch) | |
tree | 3421d36725cc1c1822f1a8e155dcc306feb4924e /drivers/iommu/shmobile-iommu.c | |
parent | ef20854f7600f5019f1869fb331f73281f834257 (diff) |
iommu/amd: Fix bug in put_pasid_state_wait
commit 1bf1b431d98d7e5b5419876d4c219469e60693e1 upstream.
This patch fixes a bug in put_pasid_state_wait that appeared in kernel 4.0
The bug is that pasid_state->count wasn't decremented before entering the
wait_event. Thus, the condition in wait_event will never be true.
The fix is to decrement (atomically) the pasid_state->count before the
wait_event.
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iommu/shmobile-iommu.c')
0 files changed, 0 insertions, 0 deletions