diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2013-03-15 01:19:36 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-04-01 20:04:50 +0200 |
commit | 24d321284745cbc593fba8115585329d48703704 (patch) | |
tree | e8c266b2b30024980e353ee26086318e02c73f22 /drivers/leds/leds-pwm.c | |
parent | leds: lm355x, lm3642: support camera LED triggers for flash and torch (diff) | |
download | linux-24d321284745cbc593fba8115585329d48703704.tar.xz linux-24d321284745cbc593fba8115585329d48703704.zip |
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>
Diffstat (limited to 'drivers/leds/leds-pwm.c')
0 files changed, 0 insertions, 0 deletions