aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorMike Marciniszyn <[email protected]>2021-10-13 14:18:52 +0000
committerJason Gunthorpe <[email protected]>2021-10-13 16:33:22 +0000
commit13bac861952a78664907a0f927d3e874e9a59034 (patch)
tree81a785ac857883315c21f69a87fca1b1761314a5 /lib/string_helpers.c
parentIB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields (diff)
downloadkernel-13bac861952a78664907a0f927d3e874e9a59034.tar.gz
kernel-13bac861952a78664907a0f927d3e874e9a59034.zip
IB/hfi1: Fix abba locking issue with sc_disable()
sc_disable() after having disabled the send context wakes up any waiters by calling hfi1_qp_wakeup() while holding the waitlock for the sc. This is contrary to the model for all other calls to hfi1_qp_wakeup() where the waitlock is dropped and a local is used to drive calls to hfi1_qp_wakeup(). Fix by moving the sc->piowait into a local list and driving the wakeup calls from the list. Fixes: 099a884ba4c0 ("IB/hfi1: Handle wakeup of orphaned QPs for pio") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Marciniszyn <[email protected]> Reported-by: TOTE Robot <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions