Merge pull request #276 from NOVBobLee/pr
Some checks failed
build-deploy-assets / build (push) Has been cancelled
deploy-github-page / build (push) Has been cancelled
status-checks / validate (push) Has been cancelled

Fix incorrect failure handling in vinput_init
This commit is contained in:
Jim Huang 2024-10-21 02:42:13 +08:00 committed by GitHub
commit ac1894673d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}