Paulo Alcantara 7f28af9cf5 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>
2021-11-12 12:59:59 -06:00
..
2021-11-02 12:39:57 -07:00
2021-08-19 09:02:55 +09:00
2021-11-01 21:06:18 -07:00
2021-10-25 19:11:50 -07:00
\n
2021-11-06 16:43:20 -07:00
2021-11-01 10:25:27 -07:00
2021-11-02 12:35:04 -07:00
2021-08-26 22:28:02 +02:00
2021-11-03 09:23:25 -07:00
2021-09-22 09:21:02 -07:00
2021-11-01 21:06:18 -07:00
\n
2021-11-06 16:43:20 -07:00
\n
2021-11-06 16:40:48 -07:00
\n
2021-11-06 16:40:48 -07:00
2021-10-18 14:43:23 -06:00
2021-08-19 09:02:55 +09:00
2021-11-02 12:42:56 -07:00
2021-10-18 14:43:22 -06:00
2021-08-31 11:13:35 -07:00
2021-09-09 13:25:49 -07:00
2021-09-11 14:48:42 -07:00
2021-10-26 19:08:08 +02:00
2021-11-01 21:06:18 -07:00
2021-11-01 21:06:18 -07:00
2021-10-19 05:49:54 -06:00
2021-08-31 11:06:32 -07:00
2021-06-29 10:53:48 -07:00
2021-10-19 14:11:39 -04:00
2021-11-01 09:06:53 -07:00
2021-08-10 17:57:22 +02:00