diff options
author | Oded Gabbay <oded.gabbay@amd.com> | 2015-04-16 17:08:44 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-05-04 13:20:22 +0200 |
commit | 1bf1b431d98d7e5b5419876d4c219469e60693e1 (patch) | |
tree | b1a9f44753f394ec88f65c32687f46e6f699ec46 /lib/string.c | |
parent | 5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff) |
iommu/amd: Fix bug in put_pasid_state_wait
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>
Cc: stable@vger.kernel.org #v4.0
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions