Commit 4d01416
nfsd: only fill out return pointer on success in nfsd4_lookup_stateid
In the case of a revoked delegation, we still fill out the pointer even
when returning an error, which is bad form. Only overwrite the pointer
on success.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 019805f commit 4d01416
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6266 | 6266 | | |
6267 | 6267 | | |
6268 | 6268 | | |
| 6269 | + | |
6269 | 6270 | | |
6270 | 6271 | | |
6271 | 6272 | | |
| |||
6288 | 6289 | | |
6289 | 6290 | | |
6290 | 6291 | | |
6291 | | - | |
6292 | | - | |
| 6292 | + | |
| 6293 | + | |
6293 | 6294 | | |
6294 | | - | |
6295 | | - | |
| 6295 | + | |
| 6296 | + | |
6296 | 6297 | | |
6297 | 6298 | | |
6298 | 6299 | | |
6299 | 6300 | | |
| 6301 | + | |
6300 | 6302 | | |
6301 | 6303 | | |
6302 | 6304 | | |
| |||
0 commit comments