Whamcloud - gitweb
fixed a refcount bug for types.
authorbraam <braam>
Thu, 23 Dec 1999 18:07:05 +0000 (18:07 +0000)
committerbraam <braam>
Thu, 23 Dec 1999 18:07:05 +0000 (18:07 +0000)
lustre/obdclass/class_obd.c

index de5df3f..68d586f 100644 (file)
@@ -451,6 +451,7 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp,
                       obddev->obd_type->typ_name);
                if ( !obddev->obd_type->typ_ops || 
                     !obddev->obd_type->typ_ops->o_setup ) {
+                       obddev->obd_type->typ_refcnt++;
                        obddev->obd_flags |= OBD_SET_UP;
                        return 0;
                }