aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <[email protected]>2022-02-15 13:33:07 -0800
committerJens Axboe <[email protected]>2022-02-27 14:49:49 -0700
commitb27824d31f09ea7b4a6ba2c1b18bd328df3e8bed (patch)
treef5f8a760779823214e2a05ce99d7f4b2e275f8d0 /net/lapb/lapb_in.c
parenta75110c3b36959d04d3a586ba43510ddf9b410b5 (diff)
loop: use sysfs_emit() in the sysfs xxx show()
sprintf does not know the PAGE_SIZE maximum of the temporary buffer used for outputting sysfs content and it's possible to overrun the PAGE_SIZE buffer length. Use a generic sysfs_emit function that knows the size of the temporary buffer and ensures that no overrun is done for offset attribute in loop_attr_[offset|sizelimit|autoclear|partscan|dio]_show() callbacks. Signed-off-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions