diff options
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index bb96ce1db08c..a4333a82669f 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -546,7 +546,7 @@ static int pcmcia_device_query(struct pcmcia_device *p_dev) | |||
546 | tmp = vers1->str + vers1->ofs[i]; | 546 | tmp = vers1->str + vers1->ofs[i]; |
547 | 547 | ||
548 | length = strlen(tmp) + 1; | 548 | length = strlen(tmp) + 1; |
549 | if ((length < 3) || (length > 255)) | 549 | if ((length < 2) || (length > 255)) |
550 | continue; | 550 | continue; |
551 | 551 | ||
552 | p_dev->prod_id[i] = kmalloc(sizeof(char) * length, | 552 | p_dev->prod_id[i] = kmalloc(sizeof(char) * length, |