Re: [PATCH] leds: do not overflow sysfs buffer in led_trigger_show

2016-08-16 Thread Jacek Anaszewski
Hi Zach, On 08/16/2016 12:20 AM, Zach Brown wrote: From: Nathan Sullivan 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

Re: [PATCH] leds: do not overflow sysfs buffer in led_trigger_show

2016-08-16 Thread Jacek Anaszewski
Hi Zach, On 08/16/2016 12:20 AM, Zach Brown wrote: From: Nathan Sullivan 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 Signed-off-by: Zach Brown ---

[PATCH] leds: do not overflow sysfs buffer in led_trigger_show

2016-08-15 Thread Zach Brown
From: Nathan Sullivan 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 Signed-off-by: Zach Brown

[PATCH] leds: do not overflow sysfs buffer in led_trigger_show

2016-08-15 Thread Zach Brown
From: Nathan Sullivan 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 Signed-off-by: Zach Brown --- drivers/leds/led-triggers.c | 12 +++- 1 file changed, 7