diff options
author | Erez Zilber <erezz@voltaire.com> | 2007-11-21 13:11:37 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-11-24 13:50:39 -0800 |
commit | a316b79c3306c59176d7ae04e4aad12374dfed37 (patch) | |
tree | 59f20bf4fbea3527a531cd1e4c02cc1f2bd7a2b0 /include/asm-m68k/idprom.h | |
parent | 3fe2ed344d4b36e7489b1d0c7cf677312b0bf870 (diff) |
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 <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/asm-m68k/idprom.h')
0 files changed, 0 insertions, 0 deletions