Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp711658pxv; Thu, 15 Jul 2021 14:09:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTxBC+F7bEFPTcdb3wMmXNT7eXUQqSK/Hzd9RmP8OhXq9GV49DzkPdrz4o452LTVsE8IK2 X-Received: by 2002:aa7:d34a:: with SMTP id m10mr9789801edr.12.1626383377376; Thu, 15 Jul 2021 14:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383377; cv=none; d=google.com; s=arc-20160816; b=s7PU/5QrD8THltBq+lu+iXcQIpvKPcU4WccIhO+so04GFNllbhirZ6/ulLWLwvUGX9 f3OC0A5ytwsZmxjwU/onS1aQsqL9JbhjT5r+XTlONgGcwuWAt0tKSYyPXyRMQ8dgL9yU iQ8mP57O9xM9ddGm10E12UEXugH5mHCvgJLStj0Bw75aOKE/jofxD4fgMsjdJnHPj4Uc 7p+mgDLGjEQFZ9H37y3gCWDKzjDgUWO8aAd26O4OVwHbxe18bIeTsazq5QhtOfRTjE9l ZaeBFw359U0G0o3Ahrqg+GevHqlNRwjvXzW8SxVYionjlvFhXyxP3OH/Qc4X1W73HvXg zRyw== 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=PSOMjxYgVSjjuwjwylGQy6A9dVoaFamBTeInKvhXqZE=; b=E5QZ4iVr06xZauc8aCxLSj91PdiPXKytIL9mUVI8f9Nmkt+NakFP9a46JroMmvLMe/ /JWv8KmmA+A489DhqE+wtYJGNR1/QtM7Ij/eT4RIOnJYnu4sxL0FnWdkwxdTcfcl0Jt/ zephiAHZKSJ4jF+xAcDEe+HPTwgTeT9uvLbkIrkSa7p/Dp0nZ11/TuWirB88lNG9cz0/ Vh+Ohca2Jwi0SuQxpzmKIs8/ualvLgz9vXlp8eEwbM/0KFcusrvtKsZ/D/OgKM8FvuPE ZoUyJu3yrmDZU8HpjEvzba9AdGDSo9ZaLttG0dU0MY2Enlpw+fk/0/jGPVP8e7b7kJGP zNBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zH7d2ID+; 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 g1si1489782ejf.19.2021.07.15.14.09.14; Thu, 15 Jul 2021 14:09: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zH7d2ID+; 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 S244881AbhGOTUx (ORCPT + 99 others); Thu, 15 Jul 2021 15:20:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:39762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241545AbhGOTFO (ORCPT ); Thu, 15 Jul 2021 15:05:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CFC26613CF; Thu, 15 Jul 2021 19:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375687; bh=V4JGcCcIve5zm2wBydiLP5y0SxYpXcftaSdlt/R27uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zH7d2ID+1u211w/FQ+MTcAcnLc49jyyaZa3/iiLSw0yn/iEk2MVB9V35YNi4kpG0o 8IuIJPCsZL1ASalDv/emVn8MeNcx+8L9f6syTKB0EbS0EOHgT6LAu9ySVP4gxvK9Ev TbQc5jIV/8VS5yNDpbsoZRxwhELi6f2eR/C+tskw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russ Weight , Xu Yilun , Moritz Fischer Subject: [PATCH 5.12 192/242] fpga: stratix10-soc: Add missing fpga_mgr_free() call Date: Thu, 15 Jul 2021 20:39:14 +0200 Message-Id: <20210715182626.997307609@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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: Russ Weight commit d9ec9daa20eb8de1efe6abae78c9835ec8ed86f9 upstream. The stratix10-soc driver uses fpga_mgr_create() function and is therefore responsible to call fpga_mgr_free() to release the class driver resources. Add a missing call to fpga_mgr_free in the s10_remove() function. Signed-off-by: Russ Weight Reviewed-by: Xu Yilun Signed-off-by: Moritz Fischer Fixes: e7eef1d7633a ("fpga: add intel stratix10 soc fpga manager driver") Cc: stable Link: https://lore.kernel.org/r/20210614170909.232415-3-mdf@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/fpga/stratix10-soc.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/fpga/stratix10-soc.c +++ b/drivers/fpga/stratix10-soc.c @@ -454,6 +454,7 @@ static int s10_remove(struct platform_de struct s10_priv *priv = mgr->priv; fpga_mgr_unregister(mgr); + fpga_mgr_free(mgr); stratix10_svc_free_channel(priv->chan); return 0;