aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorDai Ngo <[email protected]>2023-01-31 19:12:29 +0000
committerChuck Lever <[email protected]>2023-02-20 14:20:57 +0000
commit81e722978ad21072470b73d8f6a50ad62c7d5b7d (patch)
treeaf1ab500dab0f4b9d25b6571277649a1d1b7f6d2 /tools/perf/scripts/python/stat-cpi.py
parentnfsd: fix race to check ls_layouts (diff)
downloadkernel-81e722978ad21072470b73d8f6a50ad62c7d5b7d.tar.gz
kernel-81e722978ad21072470b73d8f6a50ad62c7d5b7d.zip
NFSD: fix problems with cleanup on errors in nfsd4_copy
When nfsd4_copy fails to allocate memory for async_copy->cp_src, or nfs4_init_copy_state fails, it calls cleanup_async_copy to do the cleanup for the async_copy which causes page fault since async_copy is not yet initialized. This patche rearranges the order of initializing the fields in async_copy and adds checks in cleanup_async_copy to skip un-initialized fields. Fixes: ce0887ac96d3 ("NFSD add nfs4 inter ssc to nfsd4_copy") Fixes: 87689df69491 ("NFSD: Shrink size of struct nfsd4_copy") Signed-off-by: Dai Ngo <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions