android_kernel_oneplus_msm8998/drivers/infiniband
Bart Van Assche 9c5da71113 IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop
commit ee92efe41cf358f4b99e73509f2bfd4733609f26 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-10 08:52:08 +02:00
..
core RDMA/cma: Protect cma dev list with lock 2018-09-26 08:35:07 +02:00
hw iw_cxgb4: only allow 1 flush on user qps 2018-09-29 03:08:55 -07:00
ulp IB/srp: Avoid that sg_reset -d ${srp_device} triggers an infinite loop 2018-10-10 08:52:08 +02:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-07-17 11:31:46 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00