Whamcloud - gitweb
assert capa buffer which should not be NULL.
authorlsy <lsy>
Fri, 13 Oct 2006 07:02:59 +0000 (07:02 +0000)
committerlsy <lsy>
Fri, 13 Oct 2006 07:02:59 +0000 (07:02 +0000)
lustre/osc/osc_request.c

index 1c0cfbc..8404c52 100644 (file)
@@ -157,6 +157,7 @@ static inline void osc_pack_capa(struct ptlrpc_request *req, int offset,
                 return;
 
         c = lustre_msg_buf(req->rq_reqmsg, offset, sizeof(*c));
+        LASSERT(c);
         capa_cpy(c, oc);
         body->oa.o_valid |= OBD_MD_FLOSSCAPA;
         DEBUG_CAPA(D_SEC, c, "pack");