提交 1eb437a4 编写于 作者: N Nicholas Bellinger

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: NChris Greiveldinger <chris.greiveldinger@rnanetworks.com>
Signed-off-by: NNicholas A. Bellinger <nab@linux-iscsi.org>
上级 5951146d
......@@ -3417,7 +3417,7 @@ static int transport_generic_cmd_sequencer(
if (sector_ret)
goto out_unsupported_cdb;
size = transport_get_size(sectors, cdb, cmd);
cmd->t_task.t_task_lba = get_unaligned_be16(&cdb[2]);
cmd->t_task.t_task_lba = get_unaligned_be64(&cdb[2]);
passthrough = (dev->transport->transport_type ==
TRANSPORT_PLUGIN_PHBA_PDEV);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册