Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jorge Maidana and committed by
Helge Deller
1022e7e2 0c37bffa

+1 -1
+1 -1
drivers/video/fbdev/uvesafb.c
··· 1928 1928 } 1929 1929 } 1930 1930 1931 - cn_del_callback(&uvesafb_cn_id); 1932 1931 driver_remove_file(&uvesafb_driver.driver, &driver_attr_v86d); 1933 1932 platform_device_unregister(uvesafb_device); 1934 1933 platform_driver_unregister(&uvesafb_driver); 1934 + cn_del_callback(&uvesafb_cn_id); 1935 1935 } 1936 1936 1937 1937 module_exit(uvesafb_exit);