]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Don't allocate nfs_fattr on the stack in __nfs42_ssc_open()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Nov 2021 18:23:30 +0000 (14:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:15:15 +0000 (17:15 +0200)
commit23c6f25a60435f85e1a442dd5492e96a260dd731
tree17679e8abbba215570e14e541b00e3a54ba1be20
parent2761612bcde9776dd93ce60ce55ef0b7c7329153
NFS: Don't allocate nfs_fattr on the stack in __nfs42_ssc_open()

[ Upstream commit 156cd28562a4e8ca454d11b234d9f634a45d6390 ]

The preferred behaviour is always to allocate struct nfs_fattr from the
slab.

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