From: Erez Zilber Date: Wed, 21 Nov 2007 11:11:37 +0000 (+0200) Subject: IB/iser: Add missing counter increment in iser_data_buf_aligned_len() X-Git-Tag: v2.6.24-rc4~88^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a316b79c3306c59176d7ae04e4aad12374dfed37;p=pandora-kernel.git IB/iser: Add missing counter increment in iser_data_buf_aligned_len() While adding sg chaining support to iSER, a "for" loop was replaced with a "for_each_sg" loop. The "for" loop included the incrementation of 2 variables. Only one of them is incremented in the current "for_each_sg" loop. This caused iSER to think that all data is unaligned, and all data was copied to aligned buffers. This patch increments the missing counter inside the "for_each_sg" loop whenever necessary. Signed-off-by: Erez Zilber Signed-off-by: Roland Dreier --- Reading git-diff-tree failed