pcmcia: avoid sysfs-related lockup for cardbus
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 18 Jan 2010 07:43:39 +0000 (08:43 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 17 Feb 2010 16:48:28 +0000 (17:48 +0100)
commitc3bfc96ef7366aa996fb8286a36f3333a3b4ff25
tree6f1430068891518bfe8c72b835783bb8302429cc
parentaa584ca4cdd8db370a524c61fd3ca408303281e9
pcmcia: avoid sysfs-related lockup for cardbus

In cb_free(), we remove some sysfs files -- other sysfs files might
grab ops_mutex, so we cannot hold it while removing sysfs files. This
fixes http://lkml.org/lkml/2010/1/17/88 .

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