diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-02-02 04:42:44 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-31 22:03:11 +0300 |
commit | d49e0d5b999621412ffb177f08a1c1746dfb6071 (patch) | |
tree | 8da9556b8140531e27f180cd726dba6e8e3e8cba /tools/perf/scripts/python/syscall-counts.py | |
parent | 30ae2412e90f0ae177da631e36537392d89a2ccd (diff) | |
download | linux-d49e0d5b999621412ffb177f08a1c1746dfb6071.tar.xz |
NFSv4/pnfs: Ensure pnfs_parse_lgopen() won't try to parse uninitialised data
We need to ensure that pnfs_parse_lgopen() doesn't try to parse a
struct nfs4_layoutget_res that was not filled by a successful call
to decode_layoutget(). This can happen if we performed a cached open,
or if either the OP_ACCESS or OP_GETATTR operations preceding the
OP_LAYOUTGET in the compound returned an error.
By initialising the 'status' field to NFS4ERR_DELAY, we ensure that
pnfs_parse_lgopen() won't try to interpret the structure.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions