From fa37df355722e22eb4e51684e6af7ee2970e58bc Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 23 Dec 1999 18:07:05 +0000 Subject: [PATCH 1/1] fixed a refcount bug for types. --- lustre/obdclass/class_obd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index de5df3f..68d586f 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -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; } -- 1.8.3.1