Commit 63fab04
committed
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: aadc3bb ("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]>1 parent d5ff2fb commit 63fab04
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
| 1844 | + | |
| 1845 | + | |
1844 | 1846 | | |
1845 | 1847 | | |
1846 | 1848 | | |
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
1850 | | - | |
1851 | | - | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
| |||
0 commit comments