summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-05-20 20:07:23 +0200
committerTony Lindgren <tony@atomide.com>2010-05-20 20:07:23 +0200
commitdf760137ad3cbfa15ceed42478f81bff01b6e799 (patch)
treebe939c9d11094858d74141a4c62cb23f477754d8 /drivers/scsi/libiscsi.c
parentOMAP1: Amstrad Delta: modify defconfig for external keyboardsupport (diff)
parentAM35x: fix UI card EHCI port and LCD dependency (diff)
downloadlinux-df760137ad3cbfa15ceed42478f81bff01b6e799.tar.xz
linux-df760137ad3cbfa15ceed42478f81bff01b6e799.zip
Merge branch 'omap-boards' into omap-for-linus
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 6d5ae4474bb3..633e09036357 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -471,12 +471,12 @@ static int iscsi_prep_scsi_cmd_pdu(struct iscsi_task *task)
WARN_ON(hdrlength >= 256);
hdr->hlength = hdrlength & 0xFF;
+ hdr->cmdsn = task->cmdsn = cpu_to_be32(session->cmdsn);
if (session->tt->init_task && session->tt->init_task(task))
return -EIO;
task->state = ISCSI_TASK_RUNNING;
- hdr->cmdsn = task->cmdsn = cpu_to_be32(session->cmdsn);
session->cmdsn++;
conn->scsicmd_pdus_cnt++;