1
0
Fork 0
remarkable-linux/drivers/infiniband/ulp
Bart Van Assche fcbe49c82b IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop
commit ee92efe41c upstream.

Use different loop variables for the inner and outer loop. This avoids
that an infinite loop occurs if there are more RDMA channels than
target->req_ring_size.

Fixes: d92c0da71a ("IB/srp: Add multichannel support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-03 17:00:56 -07:00
..
ipoib IB/ipoib: Avoid a race condition between start_xmit and cm_rep_handler 2018-09-26 08:38:05 +02:00
iser IB: Correct MR length field to be 64-bit 2017-09-25 11:47:23 -04:00
isert IB/isert: fix T10-pi check mask setting 2018-07-03 11:24:54 +02:00
opa_vnic IB/opa_vnic: Properly return the total MACs in UC MAC list 2017-12-25 14:26:30 +01:00
srp IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop 2018-10-03 17:00:56 -07:00
srpt ib_srpt: Fix a use-after-free in srpt_close_ch() 2018-09-09 19:55:54 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00