diff options
author | 2020-12-16 12:25:13 +0000 | |
---|---|---|
committer | 2020-12-16 07:54:42 -0500 | |
commit | 7be9b38afafbfcc58ede3be66bfc4ea415b3d5f1 (patch) | |
tree | 3084f645de45a2bce9763c5bf2a5bab2bd87135d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'nfs-rdma-for-5.11-1' of git://git.linux-nfs.org/projects/anna/linux-nfs into linux-next (diff) | |
download | wireguard-linux-7be9b38afafbfcc58ede3be66bfc4ea415b3d5f1.tar.xz wireguard-linux-7be9b38afafbfcc58ede3be66bfc4ea415b3d5f1.zip |
NFSv4.2: fix error return on memory allocation failure
Currently when an alloc_page fails the error return is not set in
variable err and a garbage initialized value is returned. Fix this
by setting err to -ENOMEM before taking the error return path.
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: a1f26739ccdc ("NFSv4.2: improve page handling for GETXATTR")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions