diff options
| author | Chuck Lever <[email protected]> | 2024-10-26 16:02:38 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2024-10-29 19:31:18 +0000 |
| commit | 63fab04cbd0f96191b6e5beedc3b643b01c15889 (patch) | |
| tree | 2f505369eb1b0f3da428da34b3dd21f5c5b10436 /rust/helpers/helpers.c | |
| parent | nfsd: cancel nfsd_shrinker_work using sync mode in nfs4_state_shutdown_net (diff) | |
| download | kernel-63fab04cbd0f96191b6e5beedc3b643b01c15889.tar.gz kernel-63fab04cbd0f96191b6e5beedc3b643b01c15889.zip | |
NFSD: Initialize struct nfsd4_copy earlier
Ensure the refcount and async_copies fields are initialized early.
cleanup_async_copy() will reference these fields if an error occurs
in nfsd4_copy(). If they are not correctly initialized, at the very
least, a refcount underflow occurs.
Reported-by: Olga Kornievskaia <[email protected]>
Fixes: aadc3bbea163 ("NFSD: Limit the number of concurrent async COPY operations")
Reviewed-by: Jeff Layton <[email protected]>
Tested-by: Olga Kornievskaia <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
