summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorNathan Sullivan <nathan.sullivan@ni.com>2016-08-16 00:20:14 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-08-16 21:34:30 +0200
commit3b9b95363c45365d606ad4bbba16acca75fdf6d3 (patch)
tree6ef4e80e14ad3eec71611883e4cd034c74aa651d /crypto
parentleds: make triggers explicitly non-modular (diff)
downloadlinux-3b9b95363c45365d606ad4bbba16acca75fdf6d3.tar.xz
linux-3b9b95363c45365d606ad4bbba16acca75fdf6d3.zip
leds: do not overflow sysfs buffer in led_trigger_show
Per the documentation, use scnprintf instead of sprintf to ensure there is never more than PAGE_SIZE bytes of trigger names put into the buffer. Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com> Signed-off-by: Zach Brown <zach.brown@ni.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions