]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/pcmcia/rsrc_nonstatic.c
pcmcia: validate CIS, not CIS cache.
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 2 Jan 2010 11:28:04 +0000 (12:28 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 17 Jan 2010 17:30:09 +0000 (18:30 +0100)
commit904e377744bfdcea276c27167fa6a609929f39dc
tree4dc05b84992a2c35a1933b5b12b44391e0cd4e08
parentfa0b3bc504ff813cc05988bb30bbb6c6a0263eb4
pcmcia: validate CIS, not CIS cache.

In pccard_validate_cis(), validate the card CIS, not the CIS cache.
Also, destroy the CIS cache if pccard_validate_cis fails.

Furthermore, do not remove the fake CIS in destroy_cis_cache() but
do so explicitely in the code paths where it makes sense.

Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/cistpl.c
drivers/pcmcia/cs.c
drivers/pcmcia/rsrc_nonstatic.c