mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-04-27 23:14:05 +08:00
Merge pull request #278 from NOVBobLee/fix_refcnt
Fix potential reference count leak in vinput
This commit is contained in:
commit
67713859df
@ -284,6 +284,8 @@ static ssize_t export_store(struct class *class, struct class_attribute *attr,
|
|||||||
|
|
||||||
fail_register_vinput:
|
fail_register_vinput:
|
||||||
device_unregister(&vinput->dev);
|
device_unregister(&vinput->dev);
|
||||||
|
/* avoid calling vinput_destroy_vdevice() twice */
|
||||||
|
return err;
|
||||||
fail_register:
|
fail_register:
|
||||||
vinput_destroy_vdevice(vinput);
|
vinput_destroy_vdevice(vinput);
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user