Whamcloud - gitweb
LU-17000 utils: Check return value of yaml_parser_initialize 31/53331/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Tue, 5 Dec 2023 08:54:42 +0000 (14:24 +0530)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 Dec 2023 01:59:27 +0000 (01:59 +0000)
commitedccd46eba01748a5f57b32f5917f730985585b2
treea070f5652649f2638217dced4224b4f506d3467e
parentf9ef47ba6a2fc571c896a00751ff0478452f5cd3
LU-17000 utils: Check return value of yaml_parser_initialize

This patch adds return value checks to function
yaml_parser_initialize() and fopen() under lustre_cfg.c
And funciton cYAML_build_tree() under cyaml.c

Test-Parameters: trivial
CoverityID: 410239 ("Unchecked return value")
CoverityID: 410238 ("Unchecked return value")
Fixes: 65062463 (LU-14359 hsm: support a flatter HSM archive format)
Fixes: 8961f2d8 (LU-4939 utils: allow configuration through yaml files)
Change-Id: I67a34adee3e4d25f97244487684a613426637a70
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53331
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/cyaml.c
lustre/utils/lustre_cfg.c