summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/sd.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-04-30 11:16:38 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-05-28 11:21:03 +0200
commita94a59f43749b4f8cd81b8be87c95f9ef898d19d (patch)
treecd11b10a7607a3683294c22d91ece320d1861e1c /drivers/mmc/core/sd.h
parentf04086c225da11ad16d7f9a2fbca6483ab16dded (diff)
mmc: sdio: Fix several potential memory leaks in mmc_sdio_init_card()
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
Diffstat (limited to 'drivers/mmc/core/sd.h')
0 files changed, 0 insertions, 0 deletions