diff options
| author | Trond Myklebust <[email protected]> | 2025-10-31 14:51:42 +0000 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2025-11-10 19:30:46 +0000 |
| commit | 1f214e9c3aef2d0936be971072e991d78a174d71 (patch) | |
| tree | 7658faa9513178b23664cb0de307b17024d0b5c6 /lib/mpi/mpi-scan.c | |
| parent | NFS: sysfs: fix leak when nfs_client kobject add fails (diff) | |
| download | kernel-1f214e9c3aef2d0936be971072e991d78a174d71.tar.gz kernel-1f214e9c3aef2d0936be971072e991d78a174d71.zip | |
NFSv4: Fix an incorrect parameter when calling nfs4_call_sync()
The Smatch static checker noted that in _nfs4_proc_lookupp(), the flag
RPC_TASK_TIMEOUT is being passed as an argument to nfs4_init_sequence(),
which is clearly incorrect.
Since LOOKUPP is an idempotent operation, nfs4_init_sequence() should
not ask the server to cache the result. The RPC_TASK_TIMEOUT flag needs
to be passed down to the RPC layer.
Reported-by: Dan Carpenter <[email protected]>
Reported-by: Harshit Mogalapalli <[email protected]>
Fixes: 76998ebb9158 ("NFSv4: Observe the NFS_MOUNT_SOFTREVAL flag in _nfs4_proc_lookupp")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-scan.c')
0 files changed, 0 insertions, 0 deletions
