mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
d0176f612f
The flexible array in the USBH platform data is not safe to copy. The compiler will not allocate any extra memory for the non-init platform data structure (in the *_devices.c files) since it isn't given any defaults at compile time. When the probe function attempts to address that array, it will actually attempt to access data in an adjacent structure. Since there are currently no (known) implementations of the at91 USBH IP with more than 2 vbus pins, I am capping the value at 2. If somebody tries to assign more, then the compiler will produce a warning. Signed-off-by: Justin Waters <justin.waters@timesys.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
include/mach | ||
at91cap9_devices.c | ||
at91cap9.c | ||
at91rm9200_devices.c | ||
at91rm9200_time.c | ||
at91rm9200.c | ||
at91sam9rl_devices.c | ||
at91sam9rl.c | ||
at91sam926x_time.c | ||
at91sam9260_devices.c | ||
at91sam9260.c | ||
at91sam9261_devices.c | ||
at91sam9261.c | ||
at91sam9263_devices.c | ||
at91sam9263.c | ||
at91x40_time.c | ||
at91x40.c | ||
board-1arm.c | ||
board-afeb-9260v1.c | ||
board-cam60.c | ||
board-cap9adk.c | ||
board-carmeva.c | ||
board-csb337.c | ||
board-csb637.c | ||
board-dk.c | ||
board-eb01.c | ||
board-eb9200.c | ||
board-ecbat91.c | ||
board-ek.c | ||
board-kafa.c | ||
board-kb9202.c | ||
board-neocore926.c | ||
board-picotux200.c | ||
board-qil-a9260.c | ||
board-sam9-l9260.c | ||
board-sam9g20ek.c | ||
board-sam9rlek.c | ||
board-sam9260ek.c | ||
board-sam9261ek.c | ||
board-sam9263ek.c | ||
board-usb-a9260.c | ||
board-usb-a9263.c | ||
board-yl-9200.c | ||
clock.c | ||
clock.h | ||
generic.h | ||
gpio.c | ||
irq.c | ||
Kconfig | ||
leds.c | ||
Makefile | ||
Makefile.boot | ||
pm_slowclock.S | ||
pm.c | ||
sam9_smc.c | ||
sam9_smc.h |