From 83c101ca12f4ffb2afb0f2e8963633e29b12bdb7 Mon Sep 17 00:00:00 2001 From: ericm Date: Wed, 5 Aug 2009 22:08:09 +0000 Subject: [PATCH] branch: HEAD fix a case of recursive call loop. b=20235 r=rread r=wangdi --- lustre/ptlrpc/pack_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 690f4f3..cd4f6df 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -390,8 +390,8 @@ void *lustre_msg_buf_v2(struct lustre_msg_v2 *m, int n, int min_size) buflen = m->lm_buflens[n]; if (unlikely(buflen < min_size)) { CERROR("msg %p buffer[%d] size %d too small " - "(required %d, opc=%d)\n", - m, n, buflen, min_size, lustre_msg_get_opc(m)); + "(required %d, opc=%d)\n", m, n, buflen, min_size, + n == MSG_PTLRPC_BODY_OFF ? -1 : lustre_msg_get_opc(m)); return NULL; } -- 1.8.3.1