Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2434526rdh; Sun, 29 Oct 2023 16:33:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFExBKSdL6Imj1cIePPXENgHAI8y/RcFjSS3QRI4NfzeeksX095MK8JStJ4QjCtX/HDWoHg X-Received: by 2002:a05:6a21:35c8:b0:14e:3ba7:2933 with SMTP id ba8-20020a056a2135c800b0014e3ba72933mr6433288pzc.54.1698622429866; Sun, 29 Oct 2023 16:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698622429; cv=none; d=google.com; s=arc-20160816; b=JzNuOr8/Xwp2oszy2xC3joDKWAOXL8SE/JtOKCXWoye3FpFH/rDpVh/YOVkAJkgUDc EJfy8fhaQKLgJfFKi8tvvuVZMb3YrwqYIxr0PPFDVRvTOX8SbIj1ir2DYk3d95XN3RlW 0YBfGEQ3sCmZ5cNlhGk13e8KLK2P4BdK8oiS3IjRIgkzTMQH9CN6Usq22IwR40olHJs0 Js0BAhXiiVazv9DnDXaUpd0a7QAWWRNebKabR7OsNk4sfhwykxKuUmCW+c5r0dSGH5+e eqpG+6MWt4/FQFqft4V+ny04D72bQ7uUNd58f3PJf0bZ2ztokrreu1Yffyuyjgbdjaw8 LG0g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rpGUfiOPLUk3J5K2e9uyzb0qR8q7rUU81FzKJnTyRJE=; fh=wVaK3nuowybjQGjr2xx5fJW73eupJn9omIoc+3c2t9Q=; b=rtuvXtFlQQR4v85c+xnBdTHzUPN9RNzV0ugG8fbDhsIiyw0daGQeP4l5lOLa58FdWw V97ZK8s91o17MyuHTlI31dr3tXxZJL3O9adzp+t3OVrH7xySTRl1+LRmz85rJTKg9xHs FGw7ltffStTvIB6mVATVMM6JigGLzuxFi5aZ+Mf5g3hc4kzlqXzKWQO/hLc7uAdhx1Lc 95EVweDE6sthQs7P8f44blVVKt3o9zbnxwwVF9KlgX/+kEhVIuEtTQMTI9zs881cfRHh swtVDT55TMYP5TSrNEKSccYqRfUNpYZPKNZsbQfnetT0Wfp3ke/9RzyBKUhoVXzKJKlH vpOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dz2DKRqD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t2-20020a170902bc4200b001c732b6869csi4157147plz.63.2023.10.29.16.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 16:33:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dz2DKRqD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D33628040EEB; Sun, 29 Oct 2023 16:33:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbjJ2Xdl (ORCPT + 99 others); Sun, 29 Oct 2023 19:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbjJ2XdU (ORCPT ); Sun, 29 Oct 2023 19:33:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6100D7B; Sun, 29 Oct 2023 15:56:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96DD7C4339A; Sun, 29 Oct 2023 22:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620155; bh=l0EgOhbI6Doopd7yiIRwP+W/QP9yQiBqW81TeYmPLuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dz2DKRqD+R27psT5TkKIetimnyfHPf11mUuOAMUbS7ootLHsIw+uoakKR+hVHDEqh NE+HMVjOeeSWBuPSPAYNwjorONwSHtvUHqX4yF8shfLSvj1CFx665bzV4tiiKFeslc WUJsSmbqy8trpgYQsVehmAS1LwYDklPwoWcAa2jiJge/dF9U3nYjdP7jEpIpJFVa2l t5XywtsGyLceY29jh5Gq0rNSlQNyoTLpdNhvmXaiwGpPBFjeIQGghtHd9gwtx2UYOa zK8XUee1dPWPyD/4Liy7cG7iLmMn+QOwyxAAuTHihvue8GAeaV5O9hRq5fT9Cf5XP4 recBRKSXjOlWA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jorge Maidana , Helge Deller , Sasha Levin , spock@gentoo.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.5 33/52] fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit() Date: Sun, 29 Oct 2023 18:53:20 -0400 Message-ID: <20231029225441.789781-33-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225441.789781-1-sashal@kernel.org> References: <20231029225441.789781-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.9 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 16:33:49 -0700 (PDT) From: Jorge Maidana [ Upstream commit 1022e7e2f40574c74ed32c3811b03d26b0b81daf ] Delete the v86d netlink only after all the VBE tasks have been completed. Fixes initial state restore on module unload: uvesafb: VBE state restore call failed (eax=0x4f04, err=-19) Signed-off-by: Jorge Maidana Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- drivers/video/fbdev/uvesafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index 78d85dae8ec80..c4559768f00f6 100644 --- a/drivers/video/fbdev/uvesafb.c +++ b/drivers/video/fbdev/uvesafb.c @@ -1931,10 +1931,10 @@ static void uvesafb_exit(void) } } - cn_del_callback(&uvesafb_cn_id); driver_remove_file(&uvesafb_driver.driver, &driver_attr_v86d); platform_device_unregister(uvesafb_device); platform_driver_unregister(&uvesafb_driver); + cn_del_callback(&uvesafb_cn_id); } module_exit(uvesafb_exit); -- 2.42.0