From: lsy Date: Fri, 13 Oct 2006 07:02:59 +0000 (+0000) Subject: assert capa buffer which should not be NULL. X-Git-Tag: v1_8_0_110~486^2~562 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=76b20940ed959e98b8653dbccdc58a243b9a31a5;p=fs%2Flustre-release.git assert capa buffer which should not be NULL. --- diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 1c0cfbc..8404c52 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -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");