Skip to content

Commit

Permalink
pcmcia: rsrc_nonstatic: check value, not pointer
Browse files Browse the repository at this point in the history
Bug found by Harvey Harrison and Stephen Rothwell.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Jul 28, 2008
1 parent c010b2f commit 0e09c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0e09c86

Please sign in to comment.