diff options
| author | 2026-06-03 10:34:21 +0300 | |
|---|---|---|
| committer | 2026-07-07 11:22:31 +0200 | |
| commit | 221192a784c25e28b489a7e75fabf59be4f63d57 (patch) | |
| tree | 2d515420c71e227964170330d7d12dccbdc7813a /scripts/Makefile.thinlto | |
| parent | staging: greybus: hid: fix SET_REPORT return value (diff) | |
staging: fbtft: Use sysfs_emit_at() to print to sysfs file
This scnprintf() uses the wrong limit. It should be "PAGE_SIZE - len"
instead of just PAGE_SIZE. We're not going to hit the limit in real
life since we are printing at most FBTFT_GAMMA_MAX_VALUES_TOTAL (128)
u32 values, however, it's still worth fixing.
Use sysfs_emit_at() to fix this since this is a sysfs file.
Fixes: c296d5f9957c ("staging: fbtft: core support")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://patch.msgid.link/ah_Y_Y2RtqeGxchF@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
