xfs: zero allocation_args on the kernel stack
[firefly-linux-kernel-4.4.55.git] / fs / xfs / xfs_alloc.c
index 4f33c32affe3d2eb4bec9c5ca8d71a33bbc5032a..0287f3b1b503c65488c877421289e54d714e7626 100644 (file)
@@ -1866,6 +1866,7 @@ xfs_alloc_fix_freelist(
        /*
         * Initialize the args structure.
         */
+       memset(&targs, 0, sizeof(targs));
        targs.tp = tp;
        targs.mp = mp;
        targs.agbp = agbp;