diff options
| author | NeilBrown <[email protected]> | 2023-12-15 00:56:31 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2023-12-15 15:23:46 +0000 |
| commit | 2a501f55cd641eb4d3c16a2eab0d678693fac663 (patch) | |
| tree | 2a18ad5f59faa05fb603a973f45060b1aef7db2b /tools/net/ynl/generated/devlink-user.c | |
| parent | NFSD: Fix checksum mismatches in the duplicate reply cache (diff) | |
| download | kernel-2a501f55cd641eb4d3c16a2eab0d678693fac663.tar.gz kernel-2a501f55cd641eb4d3c16a2eab0d678693fac663.zip | |
nfsd: call nfsd_last_thread() before final nfsd_put()
If write_ports_addfd or write_ports_addxprt fail, they call nfsd_put()
without calling nfsd_last_thread(). This leaves nn->nfsd_serv pointing
to a structure that has been freed.
So remove 'static' from nfsd_last_thread() and call it when the
nfsd_serv is about to be destroyed.
Fixes: ec52361df99b ("SUNRPC: stop using ->sv_nrthreads as a refcount")
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Cc: <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions
