aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libiscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index fb65311c81dd..864c6284e83c 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1593,7 +1593,8 @@ int iscsi_conn_start(struct iscsi_cls_conn *cls_conn)
1593 return -EPERM; 1593 return -EPERM;
1594 } 1594 }
1595 1595
1596 if (session->first_burst > session->max_burst) { 1596 if ((session->imm_data_en || !session->initial_r2t_en) &&
1597 session->first_burst > session->max_burst) {
1597 printk("iscsi: invalid burst lengths: " 1598 printk("iscsi: invalid burst lengths: "
1598 "first_burst %d max_burst %d\n", 1599 "first_burst %d max_burst %d\n",
1599 session->first_burst, session->max_burst); 1600 session->first_burst, session->max_burst);