linux/drivers/usb/musb
Daniel Mack ca749b2a2e usb: musb: dsps: fix res_name length
The res_name is used for the name construction of a DT property as
follows:

  sprintf(res_name, "port%d-mode", id);

Hence, res_name must be at least 11 characters long in order to store
the name including the terminating '\0'.

While at it, use to snprintf() rather than sprintf() when accessing this
buffer.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2012-10-23 09:42:29 +03:00
..
Kconfig
Makefile
am35x.c
blackfin.c
blackfin.h
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c
davinci.h
musb_core.c
musb_core.h
musb_debug.h
musb_debugfs.c
musb_dma.h
musb_dsps.c usb: musb: dsps: fix res_name length 2012-10-23 09:42:29 +03:00
musb_gadget.c
musb_gadget.h
musb_gadget_ep0.c
musb_host.c
musb_host.h
musb_io.h
musb_regs.h
musb_virthub.c
musbhsdma.c
musbhsdma.h
omap2430.c
omap2430.h
tusb6010.c
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c