From 76b20940ed959e98b8653dbccdc58a243b9a31a5 Mon Sep 17 00:00:00 2001 From: lsy Date: Fri, 13 Oct 2006 07:02:59 +0000 Subject: [PATCH] assert capa buffer which should not be NULL. --- lustre/osc/osc_request.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 1.8.3.1