mmc: tmio-mmc: handle mmc_of_parse() errors during probe
authorSimon Baatz <gmbnomis@gmail.com>
Sun, 9 Jun 2013 20:14:13 +0000 (22:14 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 14:22:57 +0000 (10:22 -0400)
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc_pio.c

index f29470835a4fe35e54a43b059901a0092b87a2cf..b72edb72f7d269ccbeb75ff3c9193974e3d11a3e 100644 (file)
@@ -1001,7 +1001,9 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
        if (!mmc)
                return -ENOMEM;
 
-       mmc_of_parse(mmc);
+       ret = mmc_of_parse(mmc);
+       if (ret < 0)
+               goto host_free;
 
        pdata->dev = &pdev->dev;
        _host = mmc_priv(mmc);