mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-11-19 11:25:28 +03:00
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
This commit is contained in:
parent
60a4c7d2a2
commit
e5f732edbb
@ -1451,7 +1451,7 @@ int
|
|||||||
zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent)
|
zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent)
|
||||||
{
|
{
|
||||||
const char *osname = zm->mnt_osname;
|
const char *osname = zm->mnt_osname;
|
||||||
struct inode *root_inode;
|
struct inode *root_inode = NULL;
|
||||||
uint64_t recordsize;
|
uint64_t recordsize;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
zfsvfs_t *zfsvfs = NULL;
|
zfsvfs_t *zfsvfs = NULL;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user