Whamcloud - gitweb
LU-2749 ofd: check return value of ofd_seq_load
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 4 Feb 2013 21:07:38 +0000 (16:07 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 8 Feb 2013 23:23:28 +0000 (18:23 -0500)
commitea9b8c107008bfe4a24acc86a9d316306281552f
treeb5ecc240f24b1235193574943480d221a5dce47b
parentbf9912c3b8f9b0c788fda642a04cbc5410ec5ee7
LU-2749 ofd: check return value of ofd_seq_load

Return value ofd_seq_load was not always checked for both NULL and
errno.  This caused a NULL pointer dereference.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ib2e1658f16ba2012c9410966c08201cab7a5aa5c
Reviewed-on: http://review.whamcloud.com/5263
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_io.c
lustre/ofd/ofd_obd.c