diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2011-10-06 15:43:20 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-10-06 19:41:52 -0700 |
commit | 626af8611211c55595cd316103abd2419cd4d861 (patch) | |
tree | 51e0230b67bd204f66288329c572a3fdd2b772bb /mm | |
parent | 04c59abd3c053f9a42437d5db3af4383cf68659c (diff) |
Input: atmel_mxt_ts - use snprintf for sysfs attribute show method
Sysfs attribute show methods are always passed a buffer of length
PAGE_SIZE. To keep from overwriting this buffer and causing havoc, use
snprintf() to guarantee we never write more than the buffer can hold.
In addition, at least for my touchscreen, the number and size of objects
was far too big to fit in a single 4K page. Therefore, this patch also
trims some redundant framing text to leave more room for actual data.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Acked-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions