[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200529132842.GG14598@8bytes.org>
Date: Fri, 29 May 2020 15:28:42 +0200
From: Joerg Roedel <joro@...tes.org>
To: wu000273@....edu
Cc: kjlu@....edu, Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Alex Williamson <alex.williamson@...hat.com>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommu: Fix reference count leak in iommu_group_alloc.
On Wed, May 27, 2020 at 04:00:19PM -0500, wu000273@....edu wrote:
> From: Qiushi Wu <wu000273@....edu>
>
> kobject_init_and_add() takes reference even when it fails.
> Thus, when kobject_init_and_add() returns an error,
> kobject_put() must be called to properly clean up the kobject.
>
> Fixes: d72e31c93746 ("iommu: IOMMU Groups")
> Signed-off-by: Qiushi Wu <wu000273@....edu>
> ---
> drivers/iommu/iommu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Powered by blists - more mailing lists