diff options
author | Asias He <asias@redhat.com> | 2013-02-27 05:29:29 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-14 18:26:10 (GMT) |
commit | 50909650d88133e2231cf43632d2f4ee76266fd1 (patch) | |
tree | 3ebe95a3a5ef4471c1021f34520d54821868ac9e /drivers/target | |
parent | f8b16d21a6fc45dcf043259a69cab0c4c9e90d0f (diff) | |
download | linux-fsl-qoriq-50909650d88133e2231cf43632d2f4ee76266fd1.tar.xz |
target/pscsi: Fix page increment
commit 472b72f2db7831d7dbe22ffdff4adee3bd49b05d upstream.
The page++ is wrong. It makes bio_add_pc_page() pointing to a wrong page
address if the 'while (len > 0 && data_len > 0) { ... }' loop is
executed more than one once.
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_pscsi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index 2bcfd79..55b9530 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c @@ -940,7 +940,6 @@ pscsi_map_sg(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, bio = NULL; } - page++; len -= bytes; data_len -= bytes; off = 0; |