aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-05-03 17:23:54 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-07-22 05:37:43 -0400
commit1eb437a4ac1813f21424b8c9c39575fd61528a26 (patch)
treeba0fd018b7daf1ff6e725307b7ce97271ac74537 /drivers/target
parent5951146dea1ac8ff2f177477c907084d63913cad (diff)
target: Fix WRITE_SAME_16 t_task_lba assignment bug
This patch fixes a bug in the assignment of cmd->t_task.t_task_lba with WRITE_SAME_16 to correctly use get_unaligned_be64() for the 64-bit LBA. Reported-by: Chris Greiveldinger <chris.greiveldinger@rnanetworks.com> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index d0cd6016d3b5..a29f6d3fc55b 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -3417,7 +3417,7 @@ static int transport_generic_cmd_sequencer(
3417 if (sector_ret) 3417 if (sector_ret)
3418 goto out_unsupported_cdb; 3418 goto out_unsupported_cdb;
3419 size = transport_get_size(sectors, cdb, cmd); 3419 size = transport_get_size(sectors, cdb, cmd);
3420 cmd->t_task.t_task_lba = get_unaligned_be16(&cdb[2]); 3420 cmd->t_task.t_task_lba = get_unaligned_be64(&cdb[2]);
3421 passthrough = (dev->transport->transport_type == 3421 passthrough = (dev->transport->transport_type ==
3422 TRANSPORT_PLUGIN_PHBA_PDEV); 3422 TRANSPORT_PLUGIN_PHBA_PDEV);
3423 /* 3423 /*