Skip to content

Commit

Permalink
fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
Browse files Browse the repository at this point in the history
[ Upstream commit 1022e7e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jorgem-dev authored and gregkh committed Nov 8, 2023
1 parent 5073646 commit 4e000da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,10 +1935,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);
Expand Down

0 comments on commit 4e000da

Please sign in to comment.