Whamcloud - gitweb
LU-14428 libcfs: discard cfs_trace_copyin_string() 90/41490/4
authorMr NeilBrown <neilb@suse.de>
Tue, 9 Feb 2021 00:49:30 +0000 (11:49 +1100)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Mar 2021 16:26:12 +0000 (16:26 +0000)
commit67af976c806994cec27414d24b43f6519d72c240
treeb075c419c358138184b5aa43691b61ff57a08cec
parent95aa713f78e7acf992abda2fbb7242a6d0cc753d
LU-14428 libcfs: discard cfs_trace_copyin_string()

Instead of cfs_trace_copyin_string(), use memdup_user_nul().
This combines the allocation with the copyin, and nul-terminates.

The resulting code is a lot simpler.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I089c5da96b59ec62d177aea2f3d170bf751c6fec
Reviewed-on: https://review.whamcloud.com/41490
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/module.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
lnet/lnet/router_proc.c