1
0
Fork 0
alistair23-linux/drivers/mmc
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
..
core mmc: sdio: Fix several potential memory leaks in mmc_sdio_init_card() 2020-06-17 16:40:38 +02:00
host mmc: uniphier-sd: call devm_request_irq() after tmio_mmc_host_probe() 2020-06-17 16:40:37 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00