From patchwork Sun Jun 9 20:14:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Baatz X-Patchwork-Id: 2695061 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A1B4DDF2A1 for ; Sun, 9 Jun 2013 20:15:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162Ab3FIUPH (ORCPT ); Sun, 9 Jun 2013 16:15:07 -0400 Received: from mo-p00-ob.rzone.de ([81.169.146.160]:23368 "EHLO mo-p00-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040Ab3FIUPG (ORCPT ); Sun, 9 Jun 2013 16:15:06 -0400 X-RZG-AUTH: :L20Qdkipd/NtQfa28f3iP6nsj1VEm6lxnnjU56eNUnjyVKhsqx3PYdmEEmLU8T5OUVI= X-RZG-CLASS-ID: mo00 Received: from gandalf.schnuecks.de (p57A57344.dip0.t-ipconnect.de [87.165.115.68]) by smtp.strato.de (joses mo38) (RZmta 31.27 DYNA|AUTH) with (DHE-RSA-AES256-SHA encrypted) ESMTPA id j06250p59JAitL ; Sun, 9 Jun 2013 22:15:05 +0200 (CEST) Received: by gandalf.schnuecks.de (Postfix, from userid 500) id 2663240172; Sun, 9 Jun 2013 22:15:05 +0200 (CEST) From: Simon Baatz To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: Chris Ball , Jason Cooper , Andrew Lunn , Guennadi Liakhovetski , Thomas Petazzoni , Ulf Hansson Subject: [RESEND PATCH V3 3/8] mmc: tmio-mmc: handle mmc_of_parse() errors during probe Date: Sun, 9 Jun 2013 22:14:13 +0200 Message-Id: <1370808858-32241-4-git-send-email-gmbnomis@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370808858-32241-1-git-send-email-gmbnomis@gmail.com> References: <1370808858-32241-1-git-send-email-gmbnomis@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Signed-off-by: Simon Baatz Acked-by: Guennadi Liakhovetski --- drivers/mmc/host/tmio_mmc_pio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index f508ecb..f1a9d4a 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -988,7 +988,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);