Merge branch 'work.afs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[muen/linux.git] / fs / cifs / misc.c
index 10cff44..8a41f4e 100644 (file)
@@ -123,6 +123,8 @@ tconInfoAlloc(void)
                ret_buf->crfid.fid = kzalloc(sizeof(struct cifs_fid),
                                             GFP_KERNEL);
                spin_lock_init(&ret_buf->stat_lock);
+               atomic_set(&ret_buf->num_local_opens, 0);
+               atomic_set(&ret_buf->num_remote_opens, 0);
        }
        return ret_buf;
 }