summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65217-regulator.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-10-17 22:17:35 +0200
committerFelipe Balbi <balbi@ti.com>2012-10-23 09:42:29 +0300
commitca749b2a2e72b39b3a46d1e4d096e338bf714a3c (patch)
tree762b6cc79baee90373f8ea82ec6690dee90942cb /drivers/regulator/tps65217-regulator.c
parent6f0c0580b70c89094b3422ba81118c7b959c7556 (diff)
downloadblackbird-op-linux-ca749b2a2e72b39b3a46d1e4d096e338bf714a3c.tar.gz
blackbird-op-linux-ca749b2a2e72b39b3a46d1e4d096e338bf714a3c.zip
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>
Diffstat (limited to 'drivers/regulator/tps65217-regulator.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud