1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/usb/gadget/udc/aspeed-vhub
Jakob Koschel 6163d49911 usb: gadget: aspeed: remove usage of list iterator past the loop body
If the list representing the request queue does not contain the expected
request, the value of the list_for_each_entry() iterator will not point
to a valid structure. To avoid type confusion in such case, the list
iterator scope will be limited to the list_for_each_entry() loop.

In preparation to limiting scope of the list iterator to the list traversal
loop, use a dedicated pointer to point to the found request object [1].

Link: https://lore.kernel.org/all/YhdfEIwI4EdtHdym@kroah.com/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Link: https://lore.kernel.org/r/20220308171818.384491-17-jakobkoschel@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-15 18:19:44 +01:00
..
core.c usb: gadget: aspeed: Remove repeated verbose license text 2021-08-26 13:26:07 +02:00
dev.c usb: aspeed-vhub: support test mode feature 2021-12-13 15:01:58 +01:00
ep0.c usb: aspeed-vhub: fix ep0 OUT ack received wrong length issue 2021-12-13 15:01:46 +01:00
epn.c usb: gadget: aspeed: remove usage of list iterator past the loop body 2022-03-15 18:19:44 +01:00
hub.c usb: aspeed-vhub: support test mode feature 2021-12-13 15:01:58 +01:00
Kconfig usb: gadget: aspeed: add ast2600 vhub support 2020-03-15 12:11:47 +02:00
Makefile
vhub.h usb: aspeed-vhub: add qualifier descriptor 2021-12-13 15:00:43 +01:00