diff options
author | Paulo Alcantara <pc@cjr.nz> | 2021-11-12 21:16:08 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-12 21:59:59 +0300 |
commit | 7f28af9cf542f61758b982f8304f951ca99c8f58 (patch) | |
tree | 58dc163d9de07ac2cb55e5ca2c7928c7daf215a9 /fs/eventfd.c | |
parent | 869da64d071142d4ed562a3e909deb18e4e72c4e (diff) | |
download | linux-7f28af9cf542f61758b982f8304f951ca99c8f58.tar.xz |
cifs: fix potential use-after-free bugs
Ensure that share and prefix variables are set to NULL after kfree()
when looping through DFS targets in __tree_connect_dfs_target().
Also, get rid of @ref in __tree_connect_dfs_target() and just pass a
boolean to indicate whether we're handling link targets or not.
Fixes: c88f7dcd6d64 ("cifs: support nested dfs links over reconnect")
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/eventfd.c')
0 files changed, 0 insertions, 0 deletions