diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-28 16:37:10 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-07-28 16:37:10 +0200 |
commit | 0e09c863dbb8b1816ebc106df1a1cae4c588ce0e (patch) | |
tree | e23ad12fee37725df347fadd47e171d6d6f16691 /drivers | |
parent | c010b2f76c3032e48097a6eef291d8593d5d79a6 (diff) | |
download | talos-obmc-linux-0e09c863dbb8b1816ebc106df1a1cae4c588ce0e.tar.gz talos-obmc-linux-0e09c863dbb8b1816ebc106df1a1cae4c588ce0e.zip |
pcmcia: rsrc_nonstatic: check value, not pointer
Bug found by Harvey Harrison and Stephen Rothwell.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/rsrc_nonstatic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index d0c1d63d1891..203e579ebbd2 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c @@ -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; } |