lprocfs_filter_rd_last_id() should check for the fully setup obd device
before proceeding further.
i=johann
i=andrew.perepechko
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);
struct filter_obd *filter = &obd->u.filter;
int retval = 0, rc, i;
- if (obd == NULL)
+ if (obd == NULL || !obd->obd_set_up || obd->obd_stopping)
return 0;
rc = snprintf(page, count, LPU64"\n",filter_last_id(filter, 0));
if (rc < 0)