Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp401809pxb; Wed, 3 Mar 2021 06:16:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRcDwqexotCCapVCRxE+umrJRNYvQh8rseyn1mMvWfF+L/zJJcoMZRAj6Tw8QvZWAy+wZS X-Received: by 2002:a05:6402:445:: with SMTP id p5mr26094492edw.20.1614780964447; Wed, 03 Mar 2021 06:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614780964; cv=none; d=google.com; s=arc-20160816; b=yQYmOH/vY42i5yMcq8YIQeK8LOjz2a4D7HP1UUtk55RMHV5EmGrX4rIc6Fj5gFEoNn iqeiAF2c8qEl8V1CQoFmTjrTWjnzqHaMeiJom8o31aCNxtiZMWKyn85P5HUj0KSiphYq Wiu/TApb3l91BwMZbhsDBZzMTb8EtneRDj8/HTLvKf4mEGYJaZ0OTZG9s9AlHKm5g1W2 0bkVFCyb+eFRwiNRN/DkI0+StRqw5k1vfyjz+0ZwIJJguQ6Y3TWqx8O6X+GzsWVlH/7U p0aDH76KqR+Im5t3WHksKVfKmIbHpgbwkdMnr/nWhLGeg5EkE8/Ov+VjrjdSaLaq61Pd Zh2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=53rh5s4z7Vm/jReGVG9T8EjkoIqxZBD1Sqzu6HYThFE=; b=WfJYC6MJXW3VSQfwoeuH4hrO7iItXfX5hg6pTakAGwwLmBHbUItWe0D9VrD7YIy9YG zwqbcKj3hU+AkW5ZvLNK2uMr+bhn03FHvFYlGQzHN1c62s9KSdp4HdKsJPlvw5wd2Sus mlmKdqcOfcjAkzqI6BkFLelzoh3BgQzioSU7nxHKDYKYUZFM7bim+ZCneegllK1yFOlo YheV2+xMmiPxcQ/9fmwGEEYYsMIX/3ryiQB/KrXlH+8DRlk8esYmNYTNmCmeRaZc+Ryp LRf1zhmri4/veQnaAjFgg7sgPEyS72YdITCStAzYaXx0QjbO42rla2iqVoOTOPBmEj3s ZdyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mhkdQ5oc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw16si12771349ejb.673.2021.03.03.06.14.52; Wed, 03 Mar 2021 06:16:04 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mhkdQ5oc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243554AbhCAUde (ORCPT + 99 others); Mon, 1 Mar 2021 15:33:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:36352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237087AbhCARHj (ORCPT ); Mon, 1 Mar 2021 12:07:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA7F564F7C; Mon, 1 Mar 2021 16:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616846; bh=zAf4EwP+MOxMcIMDUTUOENG8bQV+LlPAhGQs5wqWYkg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mhkdQ5ocwY/r14t09cL2xYYuT1Ps0UXKTk4/QG3FmOSU0Yoeidh4Jg/RV6U+1PI0d HA+ZMbbGwtXj6vC7MJEawZWcP+cat+x7nMw6njOG5JTT2oxRXECwMt/kKjeg66xf3i WQJOkTyqU5FommqyKV0wxZuInQI6oCnSwo+3co50= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Vinod Koul , Sasha Levin Subject: [PATCH 4.19 115/247] dmaengine: owl-dma: Fix a resource leak in the remove function Date: Mon, 1 Mar 2021 17:12:15 +0100 Message-Id: <20210301161037.303517880@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 1f0a16f04113f9f0ab0c8e6d3abe661edab549e6 ] A 'dma_pool_destroy()' call is missing in the remove function. Add it. This call is already made in the error handling path of the probe function. Fixes: 47e20577c24d ("dmaengine: Add Actions Semi Owl family S900 DMA driver") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20201212162535.95727-1-christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/owl-dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index 7ff04bf04b31b..da5050ab7f387 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -932,6 +932,7 @@ static int owl_dma_remove(struct platform_device *pdev) owl_dma_free(od); clk_disable_unprepare(od->clk); + dma_pool_destroy(od->lli_pool); return 0; } -- 2.27.0