summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-isink.c
diff options
context:
space:
mode:
authorBartosz Golaszewski2017-03-06 17:34:48 +0100
committerMark Brown2017-03-07 13:07:21 +0100
commitb7cd1b1386ff46e60452ad1f16530645761ca7b8 (patch)
tree7d567e8598c68bf35130287c22abec14976e158a /drivers/regulator/wm831x-isink.c
parentLinux 4.11-rc1 (diff)
downloadkernel-qcow2-linux-b7cd1b1386ff46e60452ad1f16530645761ca7b8.tar.gz
kernel-qcow2-linux-b7cd1b1386ff46e60452ad1f16530645761ca7b8.tar.xz
kernel-qcow2-linux-b7cd1b1386ff46e60452ad1f16530645761ca7b8.zip
regulator: core: use snprintf() instead of scnprintf()
When creating the link to the device sysfs entry, the regulator core calls scnprintf() and then checks if the returned value is greater or equal than the buffer size. The former can never happen as scnprintf() returns the number of bytes that were actually written to the buffer, not the bytes that *would* have been written. Use the right function in this case: snprintf(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/wm831x-isink.c')
0 files changed, 0 insertions, 0 deletions