Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp659419pxv; Thu, 15 Jul 2021 12:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmR4y2UGjmUaAq53jCKnUitF0tr6/QcixwpRcm02q3oN0qDa+4+UaNfY7os2XW6jV2bKPT X-Received: by 2002:a17:906:c29a:: with SMTP id r26mr7430436ejz.235.1626378254820; Thu, 15 Jul 2021 12:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378254; cv=none; d=google.com; s=arc-20160816; b=iEm+gTKs79CLMZLiQzuahEjiY1PJqrnkhB4VRWh3r6UnXLxgrNS67AkxGOxjxUg/8A yBLGSSKJ62jNdmbcIVOnOjS+9/UsrcB5O/nd23jFKi8zDPhgSUjtOOO4SrsYn6vlPXR3 MMcSmwri5Xy1OgfuEPte2X+b3f+nHdkCoNUXTNUFqloiYWgfZ8xd2RvXHVwA72FRK0ps c/EOIX0+DaO9VoNhSQhPA0Ndqs8ax67m7Jf8UTlosqT+ilC4LTcfEDdGZnzMlVMVq++O g7oSPoZmr7270ifHNQmUudWodqc/b6dpBF5joNuwAgtAOyBNCA7bA2S9zBJrCpxHhWqa VUxQ== 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=xOJERwRTayXaKJREILH8G4RIJgAIHAoTkeUfnrjC+0HKPAQpx9ViyJNML3wCzcMK/7 h36jDSzLwMewA0RzBA5RITD+d953YVYb2nMuVKsgtbfAZmhl2I8AlKEC0PTe7Qnh3wkN l1bExD+BKUi16bczEaHBuMvN0uceEBETh9VPKNzEzCT4nNEKuHuiVGR1W8wIlYv/rbXX dzca3N7WTlz0f5ia4YX7nDIKtvjctsJ+t5tTA0D5l6tLAVXfwseQ7PsUwhHLCx/MWMY6 mnP7fp1pGfBMceuq9RbWuRIQUKZlvSbGSwcs7oUyM93YKR9o61IQGAHvkB2tgFTThwax TDow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=l66UaHbg; 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 op26si8999171ejb.415.2021.07.15.12.43.51; Thu, 15 Jul 2021 12:44:14 -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=l66UaHbg; 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 S1345740AbhGOTpU (ORCPT + 99 others); Thu, 15 Jul 2021 15:45:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:51154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241363AbhGOTPR (ORCPT ); Thu, 15 Jul 2021 15:15:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48195613CF; Thu, 15 Jul 2021 19:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376306; bh=V4JGcCcIve5zm2wBydiLP5y0SxYpXcftaSdlt/R27uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l66UaHbgWJAq6v2im3iowahku59JgzUrInv7gJszeaXJawzHHKOZ7+Sm9/ZuOxB12 7uMkDGVuna4hWRKxUjb4B/GJ2h4Ianno6e6M5nZv4PzTvFvBqDPs0a5eaYLYxpP4F+ M948DfLScAgg5pjqlbBrq2d1k5mmXL2Sy1mseEpk= 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.13 216/266] fpga: stratix10-soc: Add missing fpga_mgr_free() call Date: Thu, 15 Jul 2021 20:39:31 +0200 Message-Id: <20210715182647.674911549@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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;