diff options
author | Jorge Mora <[email protected]> | 2024-01-25 07:42:23 -0700 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2024-03-01 09:12:07 -0500 |
commit | 31e4bb8fb8d6f1e0049ba1e564ef920bf9b688d0 (patch) | |
tree | 94d5feabf45b0a5cfedbe9c515f0a7b92c46468f /tools/perf/scripts/python/flamegraph.py | |
parent | 2f73f37d66774587a0d5053e365736e10fc98c41 (diff) |
NFSD: fix LISTXATTRS returning more bytes than maxcount
The maxcount is the maximum number of bytes for the LISTXATTRS4resok
result. This includes the cookie and the count for the name array,
thus subtract 12 bytes from the maxcount: 8 (cookie) + 4 (array count)
when filling up the name array.
Fixes: 23e50fe3a5e6 ("nfsd: implement the xattr functions and en/decode logic")
Signed-off-by: Jorge Mora <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions