1
linux/drivers/mmc/card
Anna Lemehova 7d92df6929 mmc_block: add dev_t initialization check
When a card is removed before mmc_blk_probe() has called add_disk(), then
the minor field is uninitialized and has value 0.  This caused
mmc_blk_put() to always release devidx 0 even if 0 was still in use.  Then
the next mmc_blk_probe() used the first free idx of 0, which oopses in
sysfs, since it is used by another card.

Signed-off-by: Anna Lemehova <EXT-Anna.Lemehova@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Cc: <linux-mmc@vger.kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-01-11 09:34:06 -08:00
..
block.c mmc_block: add dev_t initialization check 2010-01-11 09:34:06 -08:00
Kconfig mmc: explicitly mention SDIO support in Kconfig 2008-10-12 11:04:36 +02:00
Makefile mmc: mmc host test driver 2008-05-14 21:02:16 +02:00
mmc_test.c mmc_test: fix basic read test 2009-02-18 21:01:14 +01:00
queue.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
queue.h
sdio_uart.c tty: sdio_uart: Fix the locking on "func" for new code 2009-12-11 15:18:06 -08:00