Whamcloud - gitweb
Branch b1_4
authornathan <nathan>
Tue, 3 May 2005 22:13:12 +0000 (22:13 +0000)
committernathan <nathan>
Tue, 3 May 2005 22:13:12 +0000 (22:13 +0000)
b=6223
Fix this related one too.

lustre/osc/osc_request.c

index fd55e4f..cf888d6 100644 (file)
@@ -2905,12 +2905,12 @@ static int osc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                 data = (struct obd_ioctl_data *)buf;
 
                 if (sizeof(*desc) > data->ioc_inllen1) {
-                        OBD_FREE(buf, len);
+                        obd_ioctl_freedata(buf, len);
                         GOTO(out, err = -EINVAL);
                 }
 
                 if (data->ioc_inllen2 < sizeof(uuid)) {
-                        OBD_FREE(buf, len);
+                        obd_ioctl_freedata(buf, len);
                         GOTO(out, err = -EINVAL);
                 }