diff options
author | Asias He <asias@redhat.com> | 2013-03-19 05:55:16 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-03-20 01:31:14 +0100 |
commit | 8f27d487bcc2bd603c2d87e1729abcbc301f15db (patch) | |
tree | 64ee7f44b5347c096cac35dcf0f1485707303f8c /mm/hugetlb_cgroup.c | |
parent | target/file: Bump FD_MAX_SECTORS to 2048 to handle 1M sized I/Os (diff) | |
download | linux-8f27d487bcc2bd603c2d87e1729abcbc301f15db.tar.xz linux-8f27d487bcc2bd603c2d87e1729abcbc301f15db.zip |
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>
Diffstat (limited to 'mm/hugetlb_cgroup.c')
0 files changed, 0 insertions, 0 deletions