Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3934033pxj; Mon, 21 Jun 2021 09:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZJj+rHzfweLSgVGi6t+CIq2+zjDLHDlhyRXFqKKwTH3MXVj+KpAqBz27jLNFU5/NUCuVe X-Received: by 2002:aa7:c256:: with SMTP id y22mr22796307edo.177.1624293672702; Mon, 21 Jun 2021 09:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293672; cv=none; d=google.com; s=arc-20160816; b=VQ2Q4cBPaTg6PfmBHAZCq6Aw6rFVOUqUn+LxswfFzZxe3l++0XFWROsKumfbnhvtuy IS366amjd+HwqE2pD0FO8QPKNdFIMKd9wYNPAmgLGcim71yT7uNx0xutGnCrguqXRrGX wcHhmIpW7SB4Wkci1nAbZkMzQN7zCLPP0uyFhLezWfJo2NYz3xX0pFUdV+fCdIk3h30w HT/7WDQu78YETPaOLKANXPeGiXU+yxJSGuRRLDLkLuxVKulR/sYIKZUPLDo0blW/kH/M 5G58PcdzbHNO/P0F0G0YmGxFC5OVs1k6NQjpsQjWy6gHS39O3JeaclDrU20XWzfxPzoQ RmlA== 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=Hjy39YGVjbucmsAzIanX5IJwK5rRpWf51SVvGhIe4SA=; b=o7S256bkEGWrj7UpYyIBUJ4Predzipz5xgqskcTG5ej2r0H8Sr3rBfs94GOAW+HM0E sS44A7gr/WCM9TSKDG94OCORUUL6Y7QwMl8Hpg2EsofNsuPFXhFCu62ee6pfVb0PSvTO EiHJ9jEJ6brdvJBWHO22+NmkyRrXg0e9CEPSw7aUpIws87SrrdIfXNp8t7wv6itYYia6 Ic+Ov2KSxjSfuZqhoT8OxjNWgzvvS2KIHk4i426Eet1O8Pyk9C0GLpdfRFpoRLEAzWvK acFjjLuhlLNZInieGBNxOd7RGBmKtS4/QTzdY3kvP0/GS3jNu2uuPskcV2F0McgLFDQ+ VSow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PyhaLvUq; 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 j4si11396970ejj.545.2021.06.21.09.40.50; Mon, 21 Jun 2021 09:41:12 -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=PyhaLvUq; 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 S233537AbhFUQkA (ORCPT + 99 others); Mon, 21 Jun 2021 12:40:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233259AbhFUQfc (ORCPT ); Mon, 21 Jun 2021 12:35:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C346861353; Mon, 21 Jun 2021 16:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292883; bh=3M0J0Y2bv0GuS+70jx5FFKCRi3uIvUvVg8zz4e0UaxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PyhaLvUqIPBAfNryGWNKNqwBIGNrmyGJhkxdMjM7VhOyCyUejJHY8Cr1osszHFfdP zJQcs96aG8IpJFBaJaKVv9ZMTGKqiZF34o6iIz59uspHN3lBNbwhNqstErUjO//BUQ m5DnDQHCc3YXUqc3+GsXZD4o1b8w7aJdOyBgkFa8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Jiang , Vinod Koul , Sasha Levin Subject: [PATCH 5.12 002/178] dmaengine: idxd: add missing dsa driver unregister Date: Mon, 21 Jun 2021 18:13:36 +0200 Message-Id: <20210621154921.365513351@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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: Dave Jiang [ Upstream commit 077cdb355b3d8ee0f258856962e6dac06e744401 ] The idxd_unregister_driver() has never been called for the idxd driver upon removal. Add fix to call unregister driver on module removal. Fixes: c52ca478233c ("dmaengine: idxd: add configuration component of driver") Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/161947994449.1053102.13189942817915448216.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/idxd/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c index f73677490b6c..eb41bb9df0fd 100644 --- a/drivers/dma/idxd/init.c +++ b/drivers/dma/idxd/init.c @@ -719,6 +719,7 @@ module_init(idxd_init_module); static void __exit idxd_exit_module(void) { + idxd_unregister_driver(); pci_unregister_driver(&idxd_pci_driver); idxd_cdev_remove(); idxd_unregister_bus_type(); -- 2.30.2