linux/drivers/mmc/core
Ulf Hansson 9ec34f441e mmc: sdio: Fix several potential memory leaks in mmc_sdio_init_card()
commit a94a59f437 upstream.

Over the years, the code in mmc_sdio_init_card() has grown to become quite
messy. Unfortunate this has also lead to that several paths are leaking
memory in form of an allocated struct mmc_card, which includes additional
data, such as initialized struct device for example.

Unfortunate, it's a too complex task find each offending commit. Therefore,
this change fixes all memory leaks at once.

Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20200430091640.455-3-ulf.hansson@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-17 16:40:38 +02:00
..
Kconfig
Makefile
block.c mmc: block: Fix use-after-free issue for rpmb 2020-06-03 08:21:20 +02:00
block.h
bus.c
bus.h
card.h
core.c mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for erase/trim/discard 2020-04-01 11:01:27 +02:00
core.h
debugfs.c
host.c
host.h
mmc.c mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for eMMC sleep command 2020-04-01 11:01:28 +02: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 mmc: block: Fix request completion in the CQE timeout path 2020-05-20 08:20:22 +02:00
queue.h
quirks.h
regulator.c
sd.c
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: sdio: Fix several potential memory leaks in mmc_sdio_init_card() 2020-06-17 16:40:38 +02:00
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c
slot-gpio.c
slot-gpio.h