From: Nicholas Bellinger Date: Sun, 23 Feb 2014 12:52:44 +0000 (+0000) Subject: target/sbc: Fix sbc_dif_copy_prot addr offset bug X-Git-Tag: v3.14-rc5~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10762e80489e73e2d52bf78e0869f253f42821bd;p=pandora-kernel.git target/sbc: Fix sbc_dif_copy_prot addr offset bug This patch fixes a bug in sbc_dif_copy_prot() where the updated addr offset did not take into account the case where the associated scatterlist had not been incremented. This addresses the case where incoming protection scatterlists may contain a length smaller than PAGE_SIZE across multiple entires, when the target protection scatterlists are always being explicitly filled up to PAGE_SIZE before adding another entry. Cc: Martin K. Petersen Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Sagi Grimberg Cc: Or Gerlitz Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed