From 95918f47fd9e427235722ed90cc26e725dca2f3a Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Thu, 5 Jun 2014 23:06:09 +0400 Subject: [PATCH] LU-4629 osd-ldiskfs: fix uninitialized members 'new.dt' is used uninitialized in this function. osd_compat.c:162: 'new.dt' is declared osd_compat.c:179: 'new.dt' is used, but is uninitialized. osd_compat.c:354: 'new.dt' is declared osd_compat.c:382: 'new.dt' is used, but is uninitialized. Signed-off-by: Dmitry Eremin Change-Id: Ic37b0fd93a83d5d1a9270fd41b8bfec2f08d4b2a Reviewed-on: http://review.whamcloud.com/10614 Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/osd-ldiskfs/osd_compat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/osd-ldiskfs/osd_compat.c b/lustre/osd-ldiskfs/osd_compat.c index 9d01f72..de373e5 100644 --- a/lustre/osd-ldiskfs/osd_compat.c +++ b/lustre/osd-ldiskfs/osd_compat.c @@ -66,6 +66,8 @@ static void osd_push_ctxt(const struct osd_device *dev, newctxt->pwdmnt = dev->od_mnt; newctxt->pwd = dev->od_mnt->mnt_root; newctxt->fs = get_ds(); + newctxt->umask = current_umask(); + newctxt->dt = NULL; push_ctxt(save, newctxt); } -- 1.8.3.1