Home
last modified time | relevance | path

Searched hist:ca749b2a2e72b39b3a46d1e4d096e338bf714a3c (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/usb/musb/
H A Dmusb_dsps.cdiff ca749b2a2e72b39b3a46d1e4d096e338bf714a3c Wed Oct 17 22:17:35 CEST 2012 Daniel Mack <zonque@gmail.com> 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>