]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
pcmcia: rsrc_nonstatic: check value, not pointer
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 28 Jul 2008 14:37:10 +0000 (16:37 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 28 Jul 2008 14:37:10 +0000 (16:37 +0200)
Bug found by Harvey Harrison and Stephen Rothwell.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/rsrc_nonstatic.c

index d0c1d63d1891bbe7a87587d79e120cfce4aef813..203e579ebbd22e77e5413f86995bce689cc87508 100644 (file)
@@ -275,7 +275,7 @@ static int readable(struct pcmcia_socket *s, struct resource *res,
                destroy_cis_cache(s);
        }
        s->cis_mem.res = NULL;
-       if ((ret != 0) || (count == 0))
+       if ((ret != 0) || (*count == 0))
                return 0;
        return 1;
 }