aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorOded Gabbay <[email protected]>2015-04-16 14:08:44 +0000
committerJoerg Roedel <[email protected]>2015-05-04 11:20:22 +0000
commit1bf1b431d98d7e5b5419876d4c219469e60693e1 (patch)
treeb1a9f44753f394ec88f65c32687f46e6f699ec46 /net/switchdev/switchdev.c
parentLinux 4.1-rc2 (diff)
downloadkernel-1bf1b431d98d7e5b5419876d4c219469e60693e1.tar.gz
kernel-1bf1b431d98d7e5b5419876d4c219469e60693e1.zip
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 <[email protected]> Cc: [email protected] #v4.0 Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions