]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-of-at91: fix memleak on clk_get failure
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 2 Jan 2020 10:42:16 +0000 (11:42 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 16 Jan 2020 11:37:39 +0000 (12:37 +0100)
commitbdfb709facee32f8ca8bc570e205d4d74d58baf3
treeab29c5becb345d40aaf4642f03149c3b3e8aa476
parentd60ad5499d095d4d47d70f547bf24e426f020d56
mmc: sdhci-of-at91: fix memleak on clk_get failure

sdhci_alloc_host() does its work not using managed infrastructure, so
needs explicit free on error path. Add it where needed.

Cc: <stable@vger.kernel.org>
Fixes: 22fa3e1cfb02 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/b2a44d5be2e06ff075f32477e466598bb0f07b36.1577961679.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c