Skip to content

Commit ac18946

Browse files
authored
Merge pull request #276 from NOVBobLee/pr
Fix incorrect failure handling in vinput_init
2 parents e2b1756 + 9b89d0c commit ac18946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/vinput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static int __init vinput_init(void)
401401

402402
return 0;
403403
failed_class:
404-
class_unregister(&vinput_class);
404+
unregister_chrdev(vinput_dev, DRIVER_NAME);
405405
failed_alloc:
406406
return err;
407407
}

0 commit comments

Comments
 (0)