diff options
author | Marc Zyngier <maz@misterjones.org> | 2008-07-15 09:26:15 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-15 14:53:06 -0400 |
commit | 002b90a1bf5fe9c8de7a8634403a685621841ff3 (patch) | |
tree | eb0526d8a3f88ed1a2f7c202e833c5ad870e977b /drivers/pcmcia | |
parent | d93c768e66d8c3970187c179a91a2553b077d9e8 (diff) |
pcmcia: fix cisinfo_t removal
The cisinfo_t removal patch (c5081d5f4775b2a3f858f91151bbf9163e473075
pcmcia: simplify pccard_validate_cis ) introduced a bug that prevented
card detection, for the (info->Chains == MAX_TUPLES) check was replaced
by (count), which is always true. Restoring the comparison to MAX_TUPLES
makes everybody happy...
[linux@dominikbrodowski.net: update changelog comment]
Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/cistpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c index 9fcff0c33619..65129b54eb09 100644 --- a/drivers/pcmcia/cistpl.c +++ b/drivers/pcmcia/cistpl.c | |||
@@ -1490,7 +1490,7 @@ int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, unsigned | |||
1490 | ((tuple->TupleCode > 0x90) && (tuple->TupleCode < 0xff))) | 1490 | ((tuple->TupleCode > 0x90) && (tuple->TupleCode < 0xff))) |
1491 | reserved++; | 1491 | reserved++; |
1492 | } | 1492 | } |
1493 | if ((count) || (reserved > 5) || | 1493 | if ((count == MAX_TUPLES) || (reserved > 5) || |
1494 | ((!dev_ok || !ident_ok) && (count > 10))) | 1494 | ((!dev_ok || !ident_ok) && (count > 10))) |
1495 | count = 0; | 1495 | count = 0; |
1496 | 1496 | ||