Whamcloud - gitweb
Branch b1_8_gate
authoranserper <anserper>
Fri, 19 Sep 2008 16:17:34 +0000 (16:17 +0000)
committeranserper <anserper>
Fri, 19 Sep 2008 16:17:34 +0000 (16:17 +0000)
b=16706
i=Johann Lombardi
i=ZhiYong Tian

Fix missing error check

lustre/quota/quota_ctl.c

index 1e10b4e..fb06078 100644 (file)
@@ -282,6 +282,11 @@ int client_quota_ctl(struct obd_export *exp, struct obd_quotactl *oqctl)
         ptlrpc_req_set_repsize(req, 2, size);
 
         rc = ptlrpc_queue_wait(req);
+        if (rc) {
+                CERROR("ptlrpc_queue_wait failed, rc: %d\n", rc);
+                GOTO(out, rc);
+        }
+
         oqc = lustre_swab_repbuf(req, REPLY_REC_OFF, sizeof(*oqc),
                                  lustre_swab_obd_quotactl);
         if (oqc == NULL) {