Whamcloud - gitweb
LU-17000 misc: fix strscpy() Coverity warnings 65/54865/6
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 22 Apr 2024 09:25:50 +0000 (14:55 +0530)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:40:22 +0000 (18:40 +0000)
commitb9591d968a723aab1b121c6008d97cba6b010013
tree85cdaac5d791e2ab7f85ffb6010f6d7225141cbd
parent1fcfd6e62e80673ecadda43e22892867bd60fd02
LU-17000 misc: fix strscpy() Coverity warnings

Fix warning reported for use of uninitialized vairable

CoverityID: 425254 ("Uninitialized scalar variable")

Fix warning reported when changing call from strlcpy()
to strscpy()

CoverityID: 425253 ("Unsigned compared against 0")
CoverityID: 425262 ("Unsigned compared against 0")
Fixes: 7a0517fa2 ("LU-17592 build: kernel 6.8 removed strlcpy()")

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Id3804c77a105e4776a0242db787dc1ca2528d9ca
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54865
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/kunit/llog_test.c
lustre/lod/lod_lov.c
lustre/lov/lov_ea.c