Fix possibly uninitialized 'root_inode' variable warning
commite5f732edbb0d3242708442e14e033935399cf1bb
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Dec 2020 23:23:26 +0000 (10 15:23 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 23:23:26 +0000 (10 15:23 -0800)
tree6ebf6fcbbc39829bbff16ecaf9251757be80c044
parent60a4c7d2a2f8e8123e3c2e45d1773b5849f74b16
Fix possibly uninitialized 'root_inode' variable warning

Resolve an uninitialized variable warning when compiling.

    In function ‘zfs_domount’:
    warning: ‘root_inode’ may be used uninitialized in this
        function [-Wmaybe-uninitialized]
    sb->s_root = d_make_root(root_inode);

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11306
module/os/linux/zfs/zfs_vfsops.c