Whamcloud - gitweb
Fix for my careless fault. :-(
authorliangzhen <liangzhen>
Wed, 15 Feb 2006 10:30:26 +0000 (10:30 +0000)
committerliangzhen <liangzhen>
Wed, 15 Feb 2006 10:30:26 +0000 (10:30 +0000)
lustre/obdclass/class_obd.c

index f4b23d8..78b8181 100644 (file)
@@ -177,13 +177,13 @@ int class_handle_ioctl(unsigned int cmd, unsigned long arg)
                 OBD_ALLOC(lcfg, data->ioc_plen1);
                 err = copy_from_user(lcfg, data->ioc_pbuf1, data->ioc_plen1);
                 if (err) {
-                        GOTO(out, err);
                         OBD_FREE(lcfg, data->ioc_plen1);
+                        GOTO(out, err);
                 }
                 err = lustre_cfg_sanity_check(lcfg, data->ioc_plen1);
                 if (err) {
-                        GOTO(out, err);
                         OBD_FREE(lcfg, data->ioc_plen1);
+                        GOTO(out, err);
                 }
                 err = class_process_config(lcfg);