Whamcloud - gitweb
Branch b1_4_mountconf
authornathan <nathan>
Fri, 11 Nov 2005 23:12:50 +0000 (23:12 +0000)
committernathan <nathan>
Fri, 11 Nov 2005 23:12:50 +0000 (23:12 +0000)
b=8008
module_puts must match module_gets or you can't unload the module.

lustre/mgc/mgc_request.c

index d3ebba9..cd0a3fb 100644 (file)
@@ -317,7 +317,7 @@ static int mgc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                 if (rc)
                         RETURN(rc);
 
-                RETURN(rc);
+                GOTO(out, rc);
         }
         case OBD_IOC_START: {
                 char *name = data->ioc_inlbuf1;
@@ -331,7 +331,7 @@ static int mgc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                         CERROR("Unable to process log: %s\n", name);
                 pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
 
-                RETURN(rc);
+                GOTO(out, rc);
         }
         default:
                 CERROR("mgc_ioctl(): unrecognised ioctl %#x\n", cmd);