Whamcloud - gitweb
LU-10658 utils: check mount_lustre for allocation failure 00/31400/3
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 23 Feb 2018 18:26:40 +0000 (11:26 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Mar 2018 13:54:26 +0000 (13:54 +0000)
commitb631d638befe6ea21805e647f49158a15ec813bf
treeb913645a46952e374878ebd42703745301dc233a
parenta34ba90453b8bb8de9bcdf949f8afc4c2a43f393
LU-10658 utils: check mount_lustre for allocation failure

Check if calloc() failed and return an error rather than dereferencing
the NULL pointer.  Found by static analysis.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ie4a5e3341fab1de77990fc99df54cdc562dcab07
Reviewed-on: https://review.whamcloud.com/31400
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mount_lustre.c