linux-bl808/drivers/mmc/core
Alexander Kappner d0a0852b9f mmc: core: Prevent bus reference leak in mmc_blk_init()
Upon module load, mmc_block allocates a bus with bus_registeri() in
mmc_blk_init(). This reference never gets freed during module unload, which
leads to subsequent re-insertions of the module fails and a WARN() splat is
triggered.

Fix the bug by dropping the reference for the bus in mmc_blk_exit().

Signed-off-by: Alexander Kappner <agk@godking.net>
Fixes: 97548575be ("mmc: block: Convert RPMB to a character device")
Cc: <stable@vger.kernel.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2018-04-04 09:56:23 +02:00
..
block.c mmc: core: Prevent bus reference leak in mmc_blk_init() 2018-04-04 09:56:23 +02:00
block.h
bus.c
bus.h
card.h mmc: core: Disable HPI for certain Micron (Numonyx) eMMC cards 2018-03-15 14:43:25 +01:00
core.c mmc: slot-gpio: Add a function to enable/disable card detect IRQ wakeup 2018-03-05 13:04:32 +01:00
core.h
debugfs.c mmc: Export host capabilities to debugfs. 2018-03-22 10:36:27 +01:00
host.c
host.h mmc: core: Don't try UHS-I mode if 4-bit mode isn't supported 2018-03-15 09:30:39 +01:00
Kconfig
Makefile
mmc.c mmc: core: Export card RCA register via sysfs 2018-03-15 14:43:05 +01:00
mmc_ops.c
mmc_ops.h
mmc_test.c
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
queue.c
queue.h
quirks.h mmc: core: Disable HPI for certain Micron (Numonyx) eMMC cards 2018-03-15 14:43:25 +01:00
sd.c mmc: core: Export card RCA register via sysfs 2018-03-15 14:43:05 +01:00
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: sdio: Check the return value of sdio_enable_4bit_bus 2018-03-15 09:32:30 +01:00
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c mmc: update sdio_claim_irq documentation 2018-03-22 10:50:24 +01:00
sdio_ops.c
sdio_ops.h
sdio_uart.c
slot-gpio.c mmc: sdhci-pci: Respect PM flags when enabling card detect GPIO IRQ wakeup 2018-03-05 13:04:33 +01:00
slot-gpio.h