mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-24 08:10:21 +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:
|
||||
device_unregister(&vinput->dev);
|
||||
/* avoid calling vinput_destroy_vdevice() twice */
|
||||
return err;
|
||||
fail_register:
|
||||
vinput_destroy_vdevice(vinput);
|
||||
fail:
|
||||
|
|
Loading…
Reference in New Issue
Block a user