projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef605e8
)
cifs: fix uninitialized pointer in error case in dfs_cache_get_tgt_share
author
Steve French
<stfrench@microsoft.com>
Sat, 4 Jun 2022 06:18:37 +0000
(
01:18
-0500)
committer
Steve French
<stfrench@microsoft.com>
Sat, 4 Jun 2022 18:33:42 +0000
(13:33 -0500)
Set default value of ppath to null.
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c
patch
|
blob
|
history
diff --git
a/fs/cifs/dfs_cache.c
b/fs/cifs/dfs_cache.c
index
7b978a1
..
34a8f3b
100644
(file)
--- 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;