Skip to content

Commit

Permalink
Merge pull request #276 from NOVBobLee/pr
Browse files Browse the repository at this point in the history
Fix incorrect failure handling in vinput_init
  • Loading branch information
jserv authored Oct 20, 2024
2 parents e2b1756 + 9b89d0c commit ac18946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac18946

Please sign in to comment.