Whamcloud - gitweb
LU-4629 osd-ldiskfs: fix uninitialized members 14/10614/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 5 Jun 2014 19:06:09 +0000 (23:06 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Jun 2014 01:57:33 +0000 (01:57 +0000)
'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 <dmitry.eremin@intel.com>
Change-Id: Ic37b0fd93a83d5d1a9270fd41b8bfec2f08d4b2a
Reviewed-on: http://review.whamcloud.com/10614
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osd-ldiskfs/osd_compat.c

index 9d01f72..de373e5 100644 (file)
@@ -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);
 }