NFS: Always initialise fattr->label in nfs_fattr_alloc()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 4 Nov 2021 22:03:26 +0000 (18:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:16 +0000 (10:23 +0200)
commit00fa80189c979f7aa0d4927852879e20da60b231
tree5308238cf89582cd0ac461ae1866bfe74f070e01
parent0fac5f8fb1bc2fc4f8714bf5e743c9cc3f547c63
NFS: Always initialise fattr->label in nfs_fattr_alloc()

[ Upstream commit d4a95a7e5a4d3b68b26f70668cf77324a11b5718 ]

We're about to add a check in nfs_free_fattr() for whether or not the
label is non-zero.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/inode.c