Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e09c863 authored by Dominik Brodowski's avatar Dominik Brodowski
Browse files

pcmcia: rsrc_nonstatic: check value, not pointer



Bug found by Harvey Harrison and Stephen Rothwell.

Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent c010b2f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}