aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke <[email protected]>2017-08-10 22:24:29 +0000
committerLinus Torvalds <[email protected]>2017-08-10 22:54:07 +0000
commitf357e345eef7863da037e0243f2d3df4ba6df986 (patch)
treeb4f9ad06eec7ae72fff49b1aaa14dda7053f3636 /drivers/iio/trigger/stm32-timer-trigger.c
parentrmap: do not call mmu_notifier_invalidate_page() under ptl (diff)
downloadkernel-f357e345eef7863da037e0243f2d3df4ba6df986.tar.gz
kernel-f357e345eef7863da037e0243f2d3df4ba6df986.zip
zram: rework copy of compressor name in comp_algorithm_store()
comp_algorithm_store() passes the size of the source buffer to strlcpy() instead of the destination buffer size. Make it explicit that the two buffers have the same size and use strcpy() instead of strlcpy(). The latter can be done safely since the function ensures that the string in the source buffer is terminated. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Acked-by: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions