From 2b9ac5ce6399f1cec82a772c05aa64fec15b7112 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Thu, 14 Jan 2016 13:33:29 -0600 Subject: [PATCH] LU-7666 llog: use correct size when freeing log header In llog_cat_new_log() pass the allocated size of the llog header to OBD_FREE_LARGE(). Signed-off-by: John L. Hammond Change-Id: Ib8a2ae8608918a9913b01dda967365cd9f7a3925 Reviewed-on: http://review.whamcloud.com/18009 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: wangdi Reviewed-by: Oleg Drokin --- lustre/obdclass/llog_cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 9f1f4ea..46fbd36 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -101,7 +101,7 @@ static int llog_cat_new_log(const struct lu_env *env, /* If llog object is remote and creation is failed, lgh_hdr * might be left over here, free it first */ LASSERT(!llog_exist(loghandle)); - OBD_FREE_PTR(loghandle->lgh_hdr); + OBD_FREE_LARGE(loghandle->lgh_hdr, loghandle->lgh_hdr_size); loghandle->lgh_hdr = NULL; } -- 1.8.3.1