Whamcloud - gitweb
LU-10772 utils: incorrect check in build_layout_from_yaml_node 37/31537/3
authorSonia Sharma <sonia.sharma@intel.com>
Tue, 6 Mar 2018 08:39:27 +0000 (00:39 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Oct 2018 22:28:28 +0000 (22:28 +0000)
commit13bee727125202ff8519163fc72581f359532b90
tree8c2bb506035f77e4a0c7673ddfd7fdd6e2b94a6c
parent5afe99cac9a7be5bf776d68c65b2fe51b31591ae
LU-10772 utils: incorrect check in build_layout_from_yaml_node

In lustre/utils/lfs.c, build_layout_from_yaml_node(),
check and fail for NULL pointer 'string' before
dereferencing it.

Issue found in Static analysis.

Change-Id: I272432d3997f3bfae520ff3aa48d175309ccd386
Signed-off-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-on: https://review.whamcloud.com/31537
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c