From: Michael S. Tsirkin Date: Mon, 14 May 2007 14:14:50 +0000 (+0300) Subject: IB/mthca: Set cleaned CQEs back to HW ownership when cleaning CQ X-Git-Tag: v2.6.22-rc2~93^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd18c112774db5bb887adb981ffbe9bfe00b2f3a;p=pandora-kernel.git IB/mthca: Set cleaned CQEs back to HW ownership when cleaning CQ mthca_cq_clean() updates the CQ consumer index without moving CQEs back to HW ownership. As a result, the same WRID might get reported twice, resulting in a use-after-free. This was observed in IPoIB CM. Fix by moving all freed CQEs to HW ownership. This fixes Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed