Whamcloud - gitweb
b=21565 filter_last_id() NULL dereference
[fs/lustre-release.git] / lustre / obdfilter / filter.c
index 94c66d6..19a359a 100644 (file)
@@ -1424,6 +1424,7 @@ obd_id filter_last_id(struct filter_obd *filter, obd_gr group)
         obd_id id;
         LASSERT(filter->fo_fsd != NULL);
         LASSERT(group <= filter->fo_group_count);
+        LASSERT(filter->fo_last_objids != NULL);
 
         /* FIXME: object groups */
         cfs_spin_lock(&filter->fo_objidlock);