mxcmmc: fix error path in mxcmci_probe
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 15 Dec 2009 02:01:17 +0000 (18:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:34 +0000 (08:53 -0800)
commitc0521baf0d369074daf3623b5a112a0212012846
tree7a9f3202288fcebdd50379db750f03dc44a327cb
parent9b6e3e42a48ea535c0ed79df32d1353d5e547bed
mxcmmc: fix error path in mxcmci_probe

After a failing allocation of mmc or a failed ioremap in mxcmci_probe host was
used uninitialized.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Martin Fuzzey <mfuzzey@gmail.com>
Cc: Pierre Ossman <drzeus@drzeus.cx>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/mxcmmc.c