diff options
author | NeilBrown <[email protected]> | 2024-09-27 16:49:01 +1000 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2024-09-30 15:37:07 -0400 |
commit | 1d498df44e709d9708c0bf666012933bbc7ef1d6 (patch) | |
tree | 8c2c3959a0c018a5e1e553902eebfd662abc808f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 37578c682cf47bafe29fef29d177b1f38b021db9 (diff) |
sunrpc: fix prog selection loop in svc_process_common
If the rq_prog is not in the list of programs, then we use the last
program in the list and we don't get the expected rpc_prog_unavail error
as the subsequent tests on 'progp' being NULL are ineffective.
We should only assign progp when we find the right program, and we
should initialize it to NULL
Reported-by: Dan Carpenter <[email protected]>
Fixes: 86ab08beb3f0 ("SUNRPC: replace program list with program array")
Signed-off-by: NeilBrown <[email protected]>
Acked-by: Chuck Lever <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions