IB/hfi1: Check xchg returned value for queuing link down entry
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Sun, 13 Aug 2017 15:08:22 +0000 (08:08 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 Aug 2017 18:22:37 +0000 (14:22 -0400)
commitb6422bc01259aea7e4e11f1cd052e80acdf1275b
treeeafcbe44eaa817b571e805429bcca9e5a9978280
parent028e0a67ea679ff958176eac97d1319a8d685fad
IB/hfi1: Check xchg returned value for queuing link down entry

Check xchg returned value for queuing link down entry
to guarantee proper atomic value reads.

Fixes: 626c077c025f ("IB/hfi1: Prevent link down request double queuing")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c