aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/sysctl.c
diff options
context:
space:
mode:
authorJing Yangyang <jing.yangyang@zte.com.cn>2021-11-08 18:34:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-09 10:02:51 -0800
commit118b7ee169d2e469a080bf1d2fa68cd31452bdad (patch)
tree2bdbdd20ec1abd3b9d8e3597db66692547ac93f2 /fs/coda/sysctl.c
parentcoda: convert from atomic_t to refcount_t on coda_vm_ops->refcnt (diff)
downloadlinux-rng-118b7ee169d2e469a080bf1d2fa68cd31452bdad.tar.xz
linux-rng-118b7ee169d2e469a080bf1d2fa68cd31452bdad.zip
coda: use vmemdup_user to replace the open code
vmemdup_user is better than duplicating its implementation, So just replace the open code. fs/coda/psdev.c:125:10-18:WARNING:opportunity for vmemdup_user The issue is detected with the help of Coccinelle. Link: https://lkml.kernel.org/r/20210908140308.18491-9-jaharkes@cs.cmu.edu Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn> Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Cc: Alex Shi <alex.shi@linux.alibaba.com> Cc: Xin Tan <tanxin.ctf@gmail.com> Cc: Xiyu Yang <xiyuyang19@fudan.edu.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda/sysctl.c')
0 files changed, 0 insertions, 0 deletions