commit | 65585f680dc08d45d05f82320aab52c3d3221e82 | [log] [tgz] |
---|---|---|
author | Roland Dreier <roland@purestorage.com> | Fri Nov 15 10:24:08 2013 -0800 |
committer | Roland Dreier <roland@purestorage.com> | Fri Nov 15 10:24:08 2013 -0800 |
tree | 0e31503bfac56e067a355ee9b7fc01e3cfb0d928 | |
parent | bac599fc367bfb1313cc3e203112832eada818f3 [diff] |
resize_cq: Fix possible endless loop scanning CQ When calling get_sw_cqe() we need pass the consumer_index and not the masked value. Failure to do so will cause incorrect result of get_sw_cqe() possibly leading to endless loop. Based on a patch by Eli Cohen <eli@dev.mellanox.co.il> fixing the same bug in the kernel. Signed-off-by: Roland Dreier <roland@purestorage.com>