Whamcloud - gitweb
LU-2728 fld: check for NULL param in fldb_seq_stop()
[fs/lustre-release.git] / lustre / fld / lproc_fld.c
index ab3fa11..52d517f 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, 2012, Whamcloud, Inc.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -189,13 +189,15 @@ static void fldb_seq_stop(struct seq_file *p, void *v)
        struct lu_server_fld    *fld;
        struct dt_object        *obj;
 
+       if (param == NULL)
+               return;
+
        fld = param->fsp_fld;
        obj = fld->lsf_obj;
        LASSERT(obj != NULL);
        iops = &obj->do_index_ops->dio_it;
 
        iops->put(&param->fsp_env, param->fsp_it);
-       return;
 }
 
 static void *fldb_seq_next(struct seq_file *p, void *v, loff_t *pos)