summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-06-18 04:17:49 +0200
committerDoug Ledford <dledford@redhat.com>2016-06-23 16:16:15 +0200
commit2aee309d3e01447c55fdf89cef05a0e2be372655 (patch)
treeadafeb7a28dc479b08799923931f8490be15be8d /security
parentIB/hfi1: Send a pkey change event on driver pkey update (diff)
downloadlinux-2aee309d3e01447c55fdf89cef05a0e2be372655.tar.xz
linux-2aee309d3e01447c55fdf89cef05a0e2be372655.zip
IB/hfi1: Fix deadlock with txreq allocation slow path
A failure in the get_txreq() inline will result in a slow path retry using __get_txreq(). __get_txreq() attempts to procure the qp s_lock, which is already held in all callers. Fix by deleting the s_lock maintenance in __get_txreq() and add sparse syntax hooks to future proof the code. Cc: Stable <stable@vger.kernel.org> # 4.6+ Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions