From patchwork Wed May 22 11:43:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 17088 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 444A5238FE for ; Wed, 22 May 2013 11:52:04 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf2561383qen.2 for ; Wed, 22 May 2013 04:51:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=YBEtSIwLlILC0pWwce0qS3RBaeMGhtLfKKLIj7dEsg4=; b=P9hh4uYkaZvTrKF4yjotsOftTGlSu+Wt1r1s4TgYVBWgya2Y/FdJvEigcnpdOG7y0C JXec0kU62YDbBnT3eZanIavkuom5bf7odzIfUg8B68zTEgVD1MndrBvzoFL4XOfPEi4i 6SMp1wQTA0PypEo+zId6upCvxJfgmVKMMM889I42UK6MCCnw8i8FEL4HTE9C4Be43pqB 53wtaEqG5Iez3B4gVMZlNL6Ay7vBW1A/V3mnw0RQLOhQzjAEUUbPqEirY1T+To8LsVDq /InYC8agOGAORA9UFvf7sg4r/XRES6avpHHmlT7bPP7gycutswFD5SpgG0iE3neiA1SC q8kg== X-Received: by 10.224.174.145 with SMTP id t17mr3717846qaz.4.1369223471592; Wed, 22 May 2013 04:51:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.226 with SMTP id l2ls737528qey.6.gmail; Wed, 22 May 2013 04:51:11 -0700 (PDT) X-Received: by 10.52.172.73 with SMTP id ba9mr2373074vdc.16.1369223471459; Wed, 22 May 2013 04:51:11 -0700 (PDT) Received: from mail-vb0-x234.google.com (mail-vb0-x234.google.com [2607:f8b0:400c:c02::234]) by mx.google.com with ESMTPS id ef7si3469686vdc.72.2013.05.22.04.51.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 04:51:11 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::234; Received: by mail-vb0-f52.google.com with SMTP id p12so329890vbe.39 for ; Wed, 22 May 2013 04:51:11 -0700 (PDT) X-Received: by 10.52.163.207 with SMTP id yk15mr2248975vdb.42.1369223471305; Wed, 22 May 2013 04:51:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp178524vcs; Wed, 22 May 2013 04:51:10 -0700 (PDT) X-Received: by 10.180.21.193 with SMTP id x1mr13924171wie.31.1369222998378; Wed, 22 May 2013 04:43:18 -0700 (PDT) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [2a00:1450:400c:c03::231]) by mx.google.com with ESMTPS id p6si4841182wic.54.2013.05.22.04.43.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 04:43:18 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::231 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c03::231; Received: by mail-we0-f177.google.com with SMTP id n57so1081029wev.8 for ; Wed, 22 May 2013 04:43:18 -0700 (PDT) X-Received: by 10.180.90.70 with SMTP id bu6mr14043400wib.34.1369222997946; Wed, 22 May 2013 04:43:17 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id k10sm10269260wia.4.2013.05.22.04.43.16 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 04:43:16 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH] drivers/exynos4210: Return -ENOMEM when ioremap has failed Date: Wed, 22 May 2013 12:43:12 +0100 Message-Id: <1369222992-3438-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQkvHNpEY2lAdrtVVH6VfyaEe0qHibbkr88lOPavoRx14V873G33g7Rehvl+yfRcPqvkMGqd X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Julien Grall --- xen/drivers/char/exynos4210-uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c index f151390..f7971da 100644 --- a/xen/drivers/char/exynos4210-uart.c +++ b/xen/drivers/char/exynos4210-uart.c @@ -328,6 +328,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev, if ( !uart->regs ) { early_printk("exynos4210: Unable to map the UART memory\n"); + return -ENOMEM; } res = dt_device_get_irq(dev, 0, &uart->irq); if ( res )