bcm2835-mmc: Fix struct mmc_host leak on probe
authorLukas Wunner <lukas@wunner.de>
Sat, 19 Jan 2019 07:06:48 +0000 (08:06 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:23 +0000 (00:08 +0100)
commit00b48062daca8149c0f41f7ba051e0bd9022a406
treef7b64799457a47926bcfc818cea179e028af6ede
parent98048595e04c161fdb9ef63b7b11900bd9cbe2a6
bcm2835-mmc: Fix struct mmc_host leak on probe

The BCM2835 MMC host driver requests the bus address of the host's
register map on probe.  If that fails, the driver leaks the struct
mmc_host allocated earlier.

Fix it.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
drivers/mmc/host/bcm2835-mmc.c