Whamcloud - gitweb
LU-2887 tests: disable SLOW for ZFS in parallel-scale
[fs/lustre-release.git] / lustre / osp / lproc_osp.c
index dad0b8d..22e3372 100644 (file)
@@ -402,6 +402,9 @@ static int osp_rd_destroys_in_flight(char *page, char **start, off_t off,
        struct obd_device *dev = data;
        struct osp_device *osp = lu2osp_dev(dev->obd_lu_dev);
 
+       if (osp == NULL)
+               return -EINVAL;
+
        /*
         * This counter used to determine if OST has space returned.
         * Now we need to wait for the following: