Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1f62e3e authored by Jorge Maidana's avatar Jorge Maidana Committed by Greg Kroah-Hartman
Browse files

fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()



[ 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: default avatarJorge Maidana <jorgem.linux@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fb02de64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1933,10 +1933,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);