aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/x86/processor.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2025-10-07 13:39:05 -0400
committerAnna Schumaker <anna.schumaker@oracle.com>2025-10-13 14:33:00 -0400
commit8db4a1d146f83c6bdb0f5b98c50c509ae8549827 (patch)
tree6b9f9e4b91dcc1c5f5d5ba35cf4ce0a94d96add8 /tools/testing/selftests/kvm/lib/x86/processor.c
parentLinux 6.18-rc1 (diff)
downloadlinux-8db4a1d146f83c6bdb0f5b98c50c509ae8549827.tar.gz
linux-8db4a1d146f83c6bdb0f5b98c50c509ae8549827.zip
NFSv4/flexfiles: fix to allocate mirror->dss before use
Move mirror_array's dss_count initialization and dss allocation to ff_layout_alloc_mirror(), just before the loop that initializes each nfs4_ff_layout_ds_stripe's nfs_file_localio. Also handle NULL return from kcalloc() and remove one level of indent in ff_layout_alloc_mirror(). This commit fixes dangling nfsd_serv refcount issues seen when using NFS LOCALIO and then attempting to stop the NFSD service. Fixes: 20b1d75fb840 ("NFSv4/flexfiles: Add support for striped layouts") Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/x86/processor.c')
0 files changed, 0 insertions, 0 deletions