From cb02ea104a4da8e3a72ea822a62d25bd0cbb8cf6 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 22 May 2006 19:56:26 +0000 Subject: [PATCH] Branch b1_5 b=8007 fix mem leak on failed mount --- lustre/obdclass/obd_mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index e64e3a0..46fa03d 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -640,7 +640,7 @@ static int lustre_start_mgc(struct super_block *sb) /* If we are restarting the MGS, don't try to keep the MGC's old connection, or registration will fail. */ if ((lsi->lsi_flags & LSI_SERVER) && IS_MGS(lsi->lsi_ldd)) { - CDEBUG(D_MOUNT|D_ERROR, "New MGS with live MGC\n"); + CDEBUG(D_MOUNT, "New MGS with live MGC\n"); recov_bk = 1; } @@ -1482,6 +1482,7 @@ static int server_fill_super(struct super_block *sb) rc = PTR_ERR(mnt); CERROR("Unable to mount device %s: %d\n", lsi->lsi_lmd->lmd_dev, rc); + lustre_put_lsi(sb); GOTO(out, rc); } lsi->lsi_srv_mnt = mnt; -- 1.8.3.1