mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-01-18 21:02:50 +08:00
Merge pull request #276 from NOVBobLee/pr
Fix incorrect failure handling in vinput_init
This commit is contained in:
commit
ac1894673d
|
@ -401,7 +401,7 @@ static int __init vinput_init(void)
|
|||
|
||||
return 0;
|
||||
failed_class:
|
||||
class_unregister(&vinput_class);
|
||||
unregister_chrdev(vinput_dev, DRIVER_NAME);
|
||||
failed_alloc:
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user