diff options
author | Steve French <stfrench@microsoft.com> | 2020-01-16 15:58:00 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-01-26 19:24:16 -0600 |
commit | 463a7b457c02250a84faa1d23c52da9e3364aed2 (patch) | |
tree | 77d500d65bede82276675dc0282ce589a41a6107 /fs/cifs | |
parent | eecfc57130b5faa11fa5fe556313254c7ecfabed (diff) | |
download | lwn-463a7b457c02250a84faa1d23c52da9e3364aed2.tar.gz lwn-463a7b457c02250a84faa1d23c52da9e3364aed2.zip |
cifs: fix unitialized variable poential problem with network I/O cache lock patch
static analysis with Coverity detected an issue with the following
commit:
Author: Paulo Alcantara (SUSE) <pc@cjr.nz>
Date: Wed Dec 4 17:38:03 2019 -0300
cifs: Avoid doing network I/O while holding cache lock
Addresses-Coverity: ("Uninitialized pointer read")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/dfs_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index 2bbfe283fb52..b0315b7270b4 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -1349,7 +1349,7 @@ static struct cifs_ses *find_root_ses(struct vol_info *vi, char *mdata = NULL, *devname = NULL; struct TCP_Server_Info *server; struct cifs_ses *ses; - struct smb_vol vol; + struct smb_vol vol = {NULL}; rpath = get_dfs_root(path); if (IS_ERR(rpath)) |