Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp275766pxu; Wed, 7 Oct 2020 02:49:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+pKFPyTlUdXTNDR9OmHF9Ap7Jf1FejmxCfNH7jRXU/LwWchXRzi1MA5+cTW3EIZyNiQ05 X-Received: by 2002:a50:cf0b:: with SMTP id c11mr2510080edk.87.1602064177105; Wed, 07 Oct 2020 02:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602064177; cv=none; d=google.com; s=arc-20160816; b=TJi2NK5WI3w/An5cUMpSTT5JcYTgcfFRyrNmzN1leRjaR2EiDqTCjAbQYxHvFwjNBT 3UPJeKGh7WE/6y6cpG83R8f9mCr9OyMu3JNcDHpMVJ/b/ptruSffc0AFp4TiiwivbG6A tfE6EcIqr7I2ar9+nzprqlqKwNObnhmSObYkz+7JONhbc3S7IZD3J6iuNLgQC/mNs30V FYmFQ/kLbkkNU0mqLIFN4QERb2+Y+Tsxuws8bBdqXiJiweIYfvt7RCGK7tgK9sVnuM4J M6XkjT4Toj5NsdMZp15PlWEJaPsHyes14Wp6lTlQd67PiDR5Zm85UVulUZkOMAfNZAT7 Nxzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ok+L1KzeY5JbG+k0dpsUmeHPJQB1EHHgFawim/7GncY=; b=IUL2BznZZhPKE8ovLvndaWilhBQtktWS7PjVZmB1znoeIVKhR91gawuY3yzCjUGx/k 6vqe/iGZ8of5uXFM8Js7r2hGY7gflrm+mNqEDNiCEpWGMcbl6j0ozzp/5+IlhQfy2a/D AGbumobi/C5SCBbL/I57DChwoLtTMAVRmnM5+Fny7dDpHFXuvXTb8/y0snFsOkutCwaN LnIrKWSeo+K8M830/wEH9L/yb1srIMt5v4CpxsvqSBkeh2lecdu1J4Zg2HcvV2Q2lHw0 /VsH6Y+V3F3joNjavdxCCTgUECmWPAFWEshhjfDZZek6lniWn2MCRUxPXQBr7c2W89eG FDSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa7si1352303ejb.618.2020.10.07.02.49.13; Wed, 07 Oct 2020 02:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727296AbgJGJrk (ORCPT + 99 others); Wed, 7 Oct 2020 05:47:40 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:49870 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgJGJrk (ORCPT ); Wed, 7 Oct 2020 05:47:40 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 851081C0B7A; Wed, 7 Oct 2020 11:47:37 +0200 (CEST) Date: Wed, 7 Oct 2020 11:47:37 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Yu Kuai , Marek Szyprowski , Joerg Roedel , Sasha Levin Subject: Re: [PATCH 4.19 27/38] iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate() Message-ID: <20201007094737.GA12593@duo.ucw.cz> References: <20201005142108.650363140@linuxfoundation.org> <20201005142109.977461657@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <20201005142109.977461657@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Yu Kuai >=20 > [ Upstream commit 1a26044954a6d1f4d375d5e62392446af663be7a ] >=20 > if of_find_device_by_node() succeed, exynos_iommu_of_xlate() doesn't have > a corresponding put_device(). Thus add put_device() to fix the exception > handling for this function implementation. Okay, this looks reasonable, but... Do we miss put_device() in normal path, too? I'd expect another put_device at end of exynos_iommu_of_xlate() or perhaps in release path somewhere... Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX32OuQAKCRAw5/Bqldv6 8sU0AJ9rrfMHwe6nVHIddM9aZpeNhn33bwCfcs/uzk9WpIzSw2sPucOCtrOEaQc= =udAK -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--