Received: by 10.223.185.116 with SMTP id b49csp7303738wrg; Thu, 1 Mar 2018 03:23:41 -0800 (PST) X-Google-Smtp-Source: AG47ELuU4xGeLFYjZNrRoXw1TRrtidz3IITZ1XCfWfOADhDaOLv5YwOsgCh+fXSf+Q8BSJ3Rn7dF X-Received: by 10.98.102.82 with SMTP id a79mr1610787pfc.138.1519903421308; Thu, 01 Mar 2018 03:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519903421; cv=none; d=google.com; s=arc-20160816; b=ecR6tqofODQXCP9j6XngczBY9dBVczJdhDtIrVT67HzTWKsmdql2W844b7oo1uYFw+ Np0BJr+3epOc2oXqvlXrJJNyAXJMe/t1IXRz23BaMsCf+mysOpZQHsjN6GlLdjeWf1sS QuzSFMbsqyNtJ1+xB7aFgiFtxWr3Z9WsELIASqFEexW1DapdAtj8FrShkNn4TwP1F4Y6 aBSKttOjx0mAqFEnLfX63eUhuLVezIgPgSPeQy42hUXsVCE1yX7K8D5lzZYlaMQ39wsK 0wcmd+fX9wZoL1a47JWQH1TWSEYYSEi/O5rZ5n1PzzyLrE/xqAH2H8e2ERfyqFUIis0l b2gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/AcEo5M+YKvsZozlw+R4PQi8I6mC5UxMlVenbPz0o6w=; b=Cb7Fz1B9WCTeuWoNXhGDSEPwYGbqISBioXuECIJvGw0GUyO53P6ZAwUZXiinRw6ZCU Pfd9q8HdD+wDPW8ny+cKeTdb7mj0f/FixytMpVq9LVJt0tNI5oCevBVxkhphF95rCNzb d092UWendi6VGtKySXupgfSF7LK7bN843l8PFXKv5mJG/NJfIj68+Erm3FznPv3h7u0a TPFfNMnMicupKlsQrg26R4DvghUhD+zb+FhCa2hSlgdtFNwv6Lb9IlqOUplXuL9PBl0m UNWcRVmyZ25uCSdh7KVJ1N+nPte+4eJUkkohQjEQPPOtBAv5SYzoRT+5ow0LGJcYki0W 4clQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r2-v6si2906330pli.625.2018.03.01.03.23.27; Thu, 01 Mar 2018 03:23:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967767AbeCALWQ (ORCPT + 99 others); Thu, 1 Mar 2018 06:22:16 -0500 Received: from regular1.263xmail.com ([211.150.99.135]:50632 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967592AbeCALWO (ORCPT ); Thu, 1 Mar 2018 06:22:14 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.239]) by regular1.263xmail.com (Postfix) with ESMTP id AEA2A1DF93; Thu, 1 Mar 2018 19:22:10 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 12F1D345; Thu, 1 Mar 2018 19:22:09 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <095a3f675d7f5f1cab6893b881def490> X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 312633LKUBO; Thu, 01 Mar 2018 19:22:12 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: robin.murphy@arm.com, Jeffy Chen , iommu@lists.linux-foundation.org, Joerg Roedel Subject: [PATCH] iommu/omap: Increase group ref in .device_group() Date: Thu, 1 Mar 2018 19:22:08 +0800 Message-Id: <20180301112208.25284-1-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Increase group refcounting in omap_iommu_device_group(). Signed-off-by: Jeffy Chen --- drivers/iommu/omap-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index e135ab830ebf..c33b7b104e72 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -1536,7 +1536,7 @@ static struct iommu_group *omap_iommu_device_group(struct device *dev) struct iommu_group *group = ERR_PTR(-EINVAL); if (arch_data->iommu_dev) - group = arch_data->iommu_dev->group; + group = iommu_group_ref_get(arch_data->iommu_dev->group); return group; } -- 2.11.0