sdhci-pci: bad error handling in probe function
authorDan Carpenter <error27@gmail.com>
Fri, 10 Apr 2009 21:31:10 +0000 (23:31 +0200)
committerPierre Ossman <pierre@ossman.eu>
Sun, 3 May 2009 20:11:19 +0000 (22:11 +0200)
commitc60a32cd129b1c41f98888b03ba2904406bac8f8
treea80cf164fc2de787c4b04240726828b116069c0d
parent548d2de9bd978a4d4e941477500f1ab97aade137
sdhci-pci: bad error handling in probe function

The goto unmap is too early, we haven't allocated host or done the
request_region().

Found by smatch (http://repo.or.cz/w/smatch.git).

[ Second error path fix by Pierre Ossman ]

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/sdhci-pci.c