aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/eata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/eata.c')
-rw-r--r--drivers/scsi/eata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index c7076ce25e21..d1c31378f6da 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -490,6 +490,7 @@
490#include <linux/ctype.h> 490#include <linux/ctype.h>
491#include <linux/spinlock.h> 491#include <linux/spinlock.h>
492#include <linux/dma-mapping.h> 492#include <linux/dma-mapping.h>
493#include <linux/slab.h>
493#include <asm/byteorder.h> 494#include <asm/byteorder.h>
494#include <asm/dma.h> 495#include <asm/dma.h>
495#include <asm/io.h> 496#include <asm/io.h>
@@ -1509,7 +1510,7 @@ static int option_setup(char *str)
1509 char *cur = str; 1510 char *cur = str;
1510 int i = 1; 1511 int i = 1;
1511 1512
1512 while (cur && isdigit(*cur) && i <= MAX_INT_PARAM) { 1513 while (cur && isdigit(*cur) && i < MAX_INT_PARAM) {
1513 ints[i++] = simple_strtoul(cur, NULL, 0); 1514 ints[i++] = simple_strtoul(cur, NULL, 0);
1514 1515
1515 if ((cur = strchr(cur, ',')) != NULL) 1516 if ((cur = strchr(cur, ',')) != NULL)