pcmcia: add locking to set_mem_map()
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 12 Jan 2010 20:42:51 +0000 (21:42 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 17 Feb 2010 16:48:13 +0000 (17:48 +0100)
commit6b8e087b86c59c3941e125738d30cf38014089e0
tree08f77e50e5237e3bbe5e4c8f114fddc09f242628
parentc6958fdb041db6ed77f24e871dd4af5f059d1a2b
pcmcia: add locking to set_mem_map()

Protect the pccard_operations callback "set_mem_map" by a new
mutex ops_mutex. This mutex also protects the following values
in struct pcmcia_socket:

        pccard_mem_map          win[]
        pccard_mem_map          cis_mem
        void __iomem            *cis_virt

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/pcmcia_resource.c
drivers/pcmcia/rsrc_nonstatic.c
include/pcmcia/ss.h