summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic_ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/snic/snic_ctl.c')
-rw-r--r--drivers/scsi/snic/snic_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic_ctl.c b/drivers/scsi/snic/snic_ctl.c
index aebe75320ed3..ab0e06b0b4ff 100644
--- a/drivers/scsi/snic/snic_ctl.c
+++ b/drivers/scsi/snic/snic_ctl.c
@@ -75,7 +75,7 @@ snic_ver_enc(const char *s)
continue;
}
- if (i > 4 || !isdigit(c))
+ if (i > 3 || !isdigit(c))
goto end;
v[i] = v[i] * 10 + (c - '0');