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)
commitffeee83aa0461992e8a99a59db2df31933e60362
treecb183e66b9891adc3bc17c473d204affdda13956
parent23e3439296a55affce3ef0ab78f1c2e03aec8767
usb: gadget: avoid exposing kernel stack

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

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