]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: avoid exposing kernel stack
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 8 May 2016 21:20:59 +0000 (23:20 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 31 May 2016 08:24:30 +0000 (11:24 +0300)
commit6662645296c5d468f6729e0acc9ee21dbabbbd86
treecb183e66b9891adc3bc17c473d204affdda13956
parentdafdbdf15b94c82e018457879361339d6bf5146b
usb: gadget: avoid exposing kernel stack

Function in_rq_cur copies random bytes from the stack.
Zero the memory instead.

Fixes: 6049421176fb ("usb: gadget: Add Audio Class 2.0 Driver")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_uac2.c