Skip to content

Commit 463a7b4

Browse files
committed
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) <[email protected]> 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 <[email protected]> Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent eecfc57 commit 463a7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/dfs_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ static struct cifs_ses *find_root_ses(struct vol_info *vi,
13491349
char *mdata = NULL, *devname = NULL;
13501350
struct TCP_Server_Info *server;
13511351
struct cifs_ses *ses;
1352-
struct smb_vol vol;
1352+
struct smb_vol vol = {NULL};
13531353

13541354
rpath = get_dfs_root(path);
13551355
if (IS_ERR(rpath))

0 commit comments

Comments
 (0)