]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix potential panic with sdma drained mechanism
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 12 May 2016 17:23:03 +0000 (10:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:16 +0000 (19:39 -0400)
commitdfaa02ef9306e76abb4553e4fd1fefb6c565c46f
tree675a4b2244db6d171feabd77569eb72d9fca7660
parent9d8ad42f6a1130201de54892e476da2b9c968111
IB/hfi1: Fix potential panic with sdma drained mechanism

The guard is backwards, potentially causing the SDMA client
to panic if a wait structure was not specified.

psm and verbs are not exposed to the issue, but fix the
code just to be correct.

Fixes: c1ab1bdfa09e ("staging/rdma/hfi: fix CQ completion order issue")
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/sdma.c