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

Fix potential reference count leak in vinput
This commit is contained in:
Jim Huang 2024-10-25 11:06:51 +08:00 committed by GitHub
commit 67713859df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,6 +284,8 @@ static ssize_t export_store(struct class *class, struct class_attribute *attr,
fail_register_vinput:
device_unregister(&vinput->dev);
/* avoid calling vinput_destroy_vdevice() twice */
return err;
fail_register:
vinput_destroy_vdevice(vinput);
fail: