From: Eli Cohen Date: Thu, 31 Oct 2013 13:26:35 +0000 (+0200) Subject: IB/mlx4: Fix endless loop in resize CQ X-Git-Tag: v3.13-rc1~44^2^6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b80ac297b1cfdf3bea771a5ce6ea4ff5d25d1d;p=pandora-kernel.git IB/mlx4: Fix endless loop in resize 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. This problem was reported and analyzed by Michael Rice from HP. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed