Message ID | e7d7a3939197315309e1fd3549d1db90315cc8bf.1498116422.git.arvind.yadav.cs@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1FD7F600C5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Jun 2017 07:28:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07FEE28614 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Jun 2017 07:28:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F05D028641; Thu, 22 Jun 2017 07:28:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E7B728614 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 22 Jun 2017 07:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=FcmEriP1wEMlD0y9Jd0e3x+ZJ+PCZ5gGfWcWhBTFzHY=; b=Ike tlZYn0DJnt7Ftm1jPrZ2Cjl5q2hdQwQKEWISq5KH/BfsHv/AjS18hT1+L+U4A2K79rbBmK1ROCAwI T4n91OMiHzKHLpA6ck/r7h9fCKnUxptWJNHcjfLufv4GC2QUvhZfdGK4+0iE/7f4WgGKf6yFawGL+ xuQSHRoh33PvuaSLg1ABiH4xgAb9qxXZxFAW6aXdyD739YAA7UZKFNM5ijQDVPJ92v7n6SmRAk6pT 1NnJDatwI5QDlf+QWY0dzdqdJEeKPab9/gVcqW1LI+Dcx694rqAkGa99JGtObij3yJ09WDpBjvdio 1TGi7mdEmFJ4ysU917pIXfgX+os/rsQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNwXq-0006uD-6M; Thu, 22 Jun 2017 07:28:50 +0000 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNwXn-0006tA-8p for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2017 07:28:48 +0000 Received: by mail-it0-x242.google.com with SMTP id y134so3234345itc.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 22 Jun 2017 00:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=86WPesrtcyI/CB3o+bfDK2XV8/BHRfjKRlNY5YB/wyA=; b=m5wcI9YXINLZOu8+SVWu+uDUd+ojORn/FlcJMzINzDBNaJKm84OSPP+bwnWIfq7skN aORNgJ6kPlJostniGo5M+yVdQ7SbkGx2WxUxUPLDnavqE8X+cMmmp+pHDXefdp9b5iuC 1drgSymGYvcYA7B82Nyt3No8HjRjiEh7fwk/CS1JYNN/OBwgjfHCztT++v+i5YdZOB33 HLP7BhTaAOoY63z97iRwb7CfgEk9aVTnLJz+DJSp/Alxdb1P9M66l9NPDHqc0VqBY9ev 14b0K5UbYt011YL7OmbkIashaiAEAZMmKkZlbx0bBQAR6YHqkkq4h/2JdjbF6VqhI3kj gYTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=86WPesrtcyI/CB3o+bfDK2XV8/BHRfjKRlNY5YB/wyA=; b=XyErpcgEHfwwE8RKfBEJ1qwohZ7EOjSZTXlLcA4CIqpjxt7XkR80Zvi5OdIw/1lYCM yJomo0iGGeRWLGxxeItkW7g5pxFgGs7p1B1xKUvGWaLj+AnQp9YSnqfidjhRWdPlTSo4 SDwigmqDmhq9tO4jKPlRZUU/F57wtwZZkV3kkAvjL2DSh/9MIpwlnjJF/E2Bfyc2UEz+ Yf6MLzBAJz/avkgFuDP91BPuBawSWFhz5nyBcvy97nB6lXOAaThdsnfiYPCU9A/SF9+S ntUL4IHoEpwjl4G8ETwMf4w44mv/VKZb0stVqM2OoBs7AI8Q+P13VF1d7HyXqKgE7vKP E7og== X-Gm-Message-State: AKS2vOxrT7clrsyppBYUOYIG3ZNdwTsWGoSbJZWcUwo5PNR4/gjqH9vg c8Qa2Vik1qK2+Q/K X-Received: by 10.36.26.21 with SMTP id 21mr708246iti.6.1498116505969; Thu, 22 Jun 2017 00:28:25 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id x6sm383469ita.12.2017.06.22.00.28.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 00:28:25 -0700 (PDT) From: Arvind Yadav <arvind.yadav.cs@gmail.com> To: will.deacon@arm.com, robin.murphy@arm.com, joro@8bytes.org Subject: [PATCH] iommu: arm-smmu: Handle return of iommu_device_register. Date: Thu, 22 Jun 2017 12:57:42 +0530 Message-Id: <e7d7a3939197315309e1fd3549d1db90315cc8bf.1498116422.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170622_002847_395894_1ECB475D X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 7d3f08a..182eb38 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -2736,6 +2736,8 @@ static int arm_smmu_device_probe(struct platform_device *pdev) iommu_device_set_fwnode(&smmu->iommu, dev->fwnode); ret = iommu_device_register(&smmu->iommu); + if (ret) + return ret; #ifdef CONFIG_PCI if (pci_bus_type.iommu_ops != &arm_smmu_ops) {
iommu_device_register can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> --- drivers/iommu/arm-smmu-v3.c | 2 ++ 1 file changed, 2 insertions(+)