commit | 8f27d487bcc2bd603c2d87e1729abcbc301f15db | [log] [tgz] |
---|---|---|
author | Asias He <asias@redhat.com> | Tue Mar 19 12:55:16 2013 +0800 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Tue Mar 19 17:31:14 2013 -0700 |
tree | 64ee7f44b5347c096cac35dcf0f1485707303f8c | |
parent | f002a24388cc460c8a9be7d446a9871f7c9d52b6 [diff] |
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 <asias@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>