Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b44be246 authored by Mario Schuknecht's avatar Mario Schuknecht Committed by Felipe Balbi
Browse files

usb: gadget: gadgetfs: Free memory allocated by memdup_user()



Commit 3b74c73f switched over to memdup_user()
in ep_write() function and removed kfree (kbuf).
memdup_user() function allocates memory which is never freed.

Fixes: 3b74c73f (usb: gadget: inode: switch over to memdup_user())
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: default avatarMario Schuknecht <mario.schuknecht@dresearch-fe.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 68693b8e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment