lkmpg icon indicating copy to clipboard operation
lkmpg copied to clipboard

Fix incorrect failure handling in vinput_init

Open NOVBobLee opened this issue 1 year ago • 2 comments

After class_register failure, the wrong function class_unregister was used. The correct cleanup function should be unregister_chrdev, as register_chrdev was used before class_register.

NOVBobLee avatar Oct 20 '24 16:10 NOVBobLee

Thanks for spotting this issue. Can you point out more in current example code?

jserv avatar Oct 20 '24 17:10 jserv

Yes, I’ll go through the current example code and point out any additional issues I find. I'll update you in a few days.

NOVBobLee avatar Oct 20 '24 17:10 NOVBobLee

Thank @NOVBobLee for contributing!

jserv avatar Oct 20 '24 18:10 jserv