summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2017-03-20 17:24:45 -0700
committerDoug Ledford <dledford@redhat.com>2017-04-05 14:45:09 -0400
commit0519c520dc38e9950f4032d0f41f2b72b2c3c940 (patch)
tree56b111fa3e75f6c09cf0b9988a55becd8ec8aa16 /net/switchdev/switchdev.c
parentec8a142327f85ae9aa5ad784520e669a34839941 (diff)
IB/hfi1: Race hazard avoidance in user SDMA driver
Set the errcode before the state and add the smb_wmb() to avoid a potential race condition with the user. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Michael Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions