aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/iscsi/iscsi_target_nego.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c
index 21265c9c12b5..635751be5af7 100644
--- a/drivers/target/iscsi/iscsi_target_nego.c
+++ b/drivers/target/iscsi/iscsi_target_nego.c
@@ -88,7 +88,7 @@ int extract_param(
88 if (len < 0) 88 if (len < 0)
89 return -1; 89 return -1;
90 90
91 if (len > max_length) { 91 if (len >= max_length) {
92 pr_err("Length of input: %d exceeds max_length:" 92 pr_err("Length of input: %d exceeds max_length:"
93 " %d\n", len, max_length); 93 " %d\n", len, max_length);
94 return -1; 94 return -1;