This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: gadget: gadgetfs: Free memory allocated by memdup_user()
Commit 3b74c73 switched over to memdup_user() in ep_write() function and removed kfree (kbuf). memdup_user() function allocates memory which is never freed. Fixes: 3b74c73 (usb: gadget: inode: switch over to memdup_user()) Cc: <[email protected]> # v3.15+ Signed-off-by: Mario Schuknecht <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
- Loading branch information