summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJorge Maidana <jorgem.linux@gmail.com>2023-10-06 17:43:47 -0300
committerHelge Deller <deller@gmx.de>2023-10-16 23:19:34 +0200
commit1022e7e2f40574c74ed32c3811b03d26b0b81daf (patch)
treeb1b7eefb5a12d464367e958ea92e1bf125e03021 /drivers/video
parent0c37bffaaebe1733433b480d612282169632a31a (diff)
downloadlinux-stable-1022e7e2f40574c74ed32c3811b03d26b0b81daf.tar.gz
linux-stable-1022e7e2f40574c74ed32c3811b03d26b0b81daf.tar.bz2
linux-stable-1022e7e2f40574c74ed32c3811b03d26b0b81daf.zip
fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
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 <jorgem.linux@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/uvesafb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c
index a1a67830fbbc..e1f421e91b4f 100644
--- a/drivers/video/fbdev/uvesafb.c
+++ b/drivers/video/fbdev/uvesafb.c
@@ -1928,10 +1928,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);