linux/drivers/usb/gadget
Andy Shevchenko e2e02f2604 USB: gadget: u_f: Unbreak offset calculation in VLAs
commit bfd08d06d9 upstream.

Inadvertently the commit b1cd1b65af ("USB: gadget: u_f: add overflow checks
to VLA macros") makes VLA macros to always return 0 due to different scope of
two variables of the same name. Obviously we need to have only one.

Fixes: b1cd1b65af ("USB: gadget: u_f: add overflow checks to VLA macros")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Brooke Basile <brookebasile@gmail.com>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20200826192119.56450-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-03 11:27:08 +02:00
..
function USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb() 2020-09-03 11:27:08 +02:00
legacy
udc usb: bdc: Halt controller on suspend 2020-08-19 08:16:04 +02:00
Kconfig
Makefile
composite.c usb: gadget: Fix issue with config_ep_by_speed function 2020-06-24 17:50:32 +02:00
config.c
configfs.c
configfs.h
epautoconf.c
functions.c
u_f.c
u_f.h USB: gadget: u_f: Unbreak offset calculation in VLAs 2020-09-03 11:27:08 +02:00
u_os_desc.h
usbstring.c