diff options
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index e39947105ab1..d57d10cb2e47 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -760,7 +760,7 @@ static void iscsit_ack_from_expstatsn(struct iscsi_conn *conn, u32 exp_statsn) | |||
760 | 760 | ||
761 | static int iscsit_allocate_iovecs(struct iscsi_cmd *cmd) | 761 | static int iscsit_allocate_iovecs(struct iscsi_cmd *cmd) |
762 | { | 762 | { |
763 | u32 iov_count = min(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE)); | 763 | u32 iov_count = max(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE)); |
764 | 764 | ||
765 | iov_count += ISCSI_IOV_DATA_BUFFER; | 765 | iov_count += ISCSI_IOV_DATA_BUFFER; |
766 | 766 | ||