]> 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)
commit88c76bd60a26bc51b48b9cfe77211a99fc8aefa0
treecb183e66b9891adc3bc17c473d204affdda13956
parent6d76a76ea37e493b77b5f3eb4b1cc5cbace96f14
usb: gadget: avoid exposing kernel stack

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

Fixes: d43b6f02d0c1 ("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