Skip to content
Commit 3b9b9536 authored by Nathan Sullivan's avatar Nathan Sullivan Committed by Jacek Anaszewski
Browse files

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: default avatarNathan Sullivan <nathan.sullivan@ni.com>
Signed-off-by: default avatarZach Brown <zach.brown@ni.com>
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
parent 50237863
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment