Commit 42843940 authored by Trond Myklebust's avatar Trond Myklebust Committed by Zheng Zengkai
Browse files

NFS: Don't allocate nfs_fattr on the stack in __nfs42_ssc_open()

stable inclusion
from stable-v5.10.140
commit 23c6f25a60435f85e1a442dd5492e96a260dd731
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63FTT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=23c6f25a60435f85e1a442dd5492e96a260dd731



--------------------------------

[ Upstream commit 156cd285 ]

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

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 7b2047bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment