From: Michael Albaugh Date: Wed, 7 May 2008 17:59:23 +0000 (-0700) Subject: IB/ipath: Fix count of packets received by kernel X-Git-Tag: v2.6.26-rc2~31^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2889d1ef1240591fa4c72a6753e0a8d1c6e18140;p=pandora-kernel.git IB/ipath: Fix count of packets received by kernel The loop in ipath_kreceive() that processes packets increments the loop-index 'i' once too often, because the exit condition does not depend on it, and is checked after the increment. By adding a check for !last to the iterator in the for loop, we correct that in a way that is not so likely to be re-broken by changes in the loop body. Signed-off-by: Michael Albaugh Signed-off-by: Roland Dreier --- Reading git-diff-tree failed