From: Asias He Date: Tue, 19 Mar 2013 04:55:16 +0000 (+0800) Subject: target/pscsi: Reject cross page boundary case in pscsi_map_sg X-Git-Tag: v3.9-rc4~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f27d487bcc2bd603c2d87e1729abcbc301f15db;p=pandora-kernel.git target/pscsi: Reject cross page boundary case in pscsi_map_sg We can only have one page of data in each sg element, so we can not cross a page boundary. Fail this case. The 'while (len > 0 && data_len > 0) {}' loop is not necessary. The loop can only be executed once. Signed-off-by: Asias He Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed