mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
pcmcia: rsrc_nonstatic: check value, not pointer
Bug found by Harvey Harrison and Stephen Rothwell. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
parent
c010b2f76c
commit
0e09c863db
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue