diff options
Diffstat (limited to 'drivers/scsi/u14-34f.c')
-rw-r--r-- | drivers/scsi/u14-34f.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/u14-34f.c b/drivers/scsi/u14-34f.c index 54023d41fd15..5d9fdeeb2315 100644 --- a/drivers/scsi/u14-34f.c +++ b/drivers/scsi/u14-34f.c | |||
@@ -420,6 +420,7 @@ | |||
420 | #include <linux/init.h> | 420 | #include <linux/init.h> |
421 | #include <linux/ctype.h> | 421 | #include <linux/ctype.h> |
422 | #include <linux/spinlock.h> | 422 | #include <linux/spinlock.h> |
423 | #include <linux/slab.h> | ||
423 | #include <asm/dma.h> | 424 | #include <asm/dma.h> |
424 | #include <asm/irq.h> | 425 | #include <asm/irq.h> |
425 | 426 | ||
@@ -1070,7 +1071,7 @@ static int option_setup(char *str) { | |||
1070 | char *cur = str; | 1071 | char *cur = str; |
1071 | int i = 1; | 1072 | int i = 1; |
1072 | 1073 | ||
1073 | while (cur && isdigit(*cur) && i <= MAX_INT_PARAM) { | 1074 | while (cur && isdigit(*cur) && i < MAX_INT_PARAM) { |
1074 | ints[i++] = simple_strtoul(cur, NULL, 0); | 1075 | ints[i++] = simple_strtoul(cur, NULL, 0); |
1075 | 1076 | ||
1076 | if ((cur = strchr(cur, ',')) != NULL) cur++; | 1077 | if ((cur = strchr(cur, ',')) != NULL) cur++; |