summaryrefslogtreecommitdiffstats
path: root/fs/userfaultfd.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke2017-08-11 00:24:29 +0200
committerLinus Torvalds2017-08-11 00:54:07 +0200
commitf357e345eef7863da037e0243f2d3df4ba6df986 (patch)
treeb4f9ad06eec7ae72fff49b1aaa14dda7053f3636 /fs/userfaultfd.c
parentrmap: do not call mmu_notifier_invalidate_page() under ptl (diff)
downloadkernel-qcow2-linux-f357e345eef7863da037e0243f2d3df4ba6df986.tar.gz
kernel-qcow2-linux-f357e345eef7863da037e0243f2d3df4ba6df986.tar.xz
kernel-qcow2-linux-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/20170803163350.45245-1-mka@chromium.org Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions