mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
HID: fix memory leak in hidraw_release
hidraw_release() forgot to free the linked list structure, causing memory leak. Reported-by: Juan Marcos Diez Esteban <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
f472f80034
commit
4db1c62c99
1 changed files with 2 additions and 0 deletions
|
|
@ -211,6 +211,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
|
|||
kfree(list->hidraw);
|
||||
}
|
||||
|
||||
kfree(list);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue