Print this page
7798 vfs_mountfs passes junk in flags to domount
Reviewed by: Alexander Pyhalov <alp@rsu.ru>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Juraj Lutter <juraj.lutter@erigones.com>
Reviewed by: Marcel Telka <marcel@telka.sk>

@@ -23,10 +23,11 @@
  * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  * Copyright 2016 Toomas Soome <tsoome@me.com>
  * Copyright (c) 2016 by Delphix. All rights reserved.
  * Copyright 2016 Nexenta Systems, Inc.
+ * Copyright 2017 RackTop Systems.
  */
 
 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
 /*        All Rights Reserved   */
 

@@ -789,10 +790,11 @@
 {
         struct vnode *mvp;
         struct mounta mounta;
         vfs_t *vfsp;
 
+        bzero(&mounta, sizeof (mounta));
         mounta.flags = MS_SYSSPACE | MS_DATA;
         mounta.fstype = module;
         mounta.spec = spec;
         mounta.dir = path;
         if (lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &mvp)) {