diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index 7b978a1262683b0bff807ffd01225d860ef0642c..34a8f3baed5ebbeae9084dcf0f0fb1171b6f5104 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -1267,7 +1267,8 @@ int dfs_cache_get_tgt_share(char *path, const struct dfs_cache_tgt_iterator *it, char **prefix) { char sep; - char *target_share, *ppath; + char *target_share; + char *ppath = NULL; const char *target_ppath, *dfsref_ppath; size_t target_pplen, dfsref_pplen; size_t len, c;