Searched hist:"24 d321284745cbc593fba8115585329d48703704" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/leds/ |
H A D | leds-lp55xx-common.c | diff 24d321284745cbc593fba8115585329d48703704 Thu Mar 14 19:19:36 CDT 2013 Kim, Milo <Milo.Kim@ti.com> leds: lp55xx: fix the sysfs read operation
According to a sysfs documentation(Documentation/filesystem/sysfs.txt), scnprintf() should be used in a read operation method. It guarantees safe buffer size(PAGE_SIZE) which is allocated by the sysfs.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
|
H A D | leds-lp5521.c | diff 24d321284745cbc593fba8115585329d48703704 Thu Mar 14 19:19:36 CDT 2013 Kim, Milo <Milo.Kim@ti.com> leds: lp55xx: fix the sysfs read operation
According to a sysfs documentation(Documentation/filesystem/sysfs.txt), scnprintf() should be used in a read operation method. It guarantees safe buffer size(PAGE_SIZE) which is allocated by the sysfs.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
|