* [PATCH] cifs: fix dfs-links
@ 2021-02-08 6:48 Ronnie Sahlberg
2021-02-09 16:05 ` Paulo Alcantara
0 siblings, 1 reply; 2+ messages in thread
From: Ronnie Sahlberg @ 2021-02-08 6:48 UTC (permalink / raw)
To: linux-cifs; +Cc: Steve French
This fixes a regression following dfs links that was introduced in the
patch series for the new mount api.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
---
fs/cifs/connect.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 10fe6d6d2dee..76e4d8d8b3a6 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2983,6 +2983,14 @@ expand_dfs_referral(const unsigned int xid, struct cifs_ses *ses,
rc = PTR_ERR(mdata);
mdata = NULL;
} else {
+ /*
+ * We can not clear out the whole structure since we
+ * no longer have an explicit function to parse
+ * a mount-string. Instead we need to clear out the
+ * individual fields that are no longer valid.
+ */
+ kfree(ctx->prepath);
+ ctx->prepath = NULL;
rc = cifs_setup_volume_info(ctx, mdata, fake_devname);
}
kfree(fake_devname);
--
2.13.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cifs: fix dfs-links
2021-02-08 6:48 [PATCH] cifs: fix dfs-links Ronnie Sahlberg
@ 2021-02-09 16:05 ` Paulo Alcantara
0 siblings, 0 replies; 2+ messages in thread
From: Paulo Alcantara @ 2021-02-09 16:05 UTC (permalink / raw)
To: Ronnie Sahlberg, linux-cifs; +Cc: Steve French
Ronnie Sahlberg <lsahlber@redhat.com> writes:
> This fixes a regression following dfs links that was introduced in the
> patch series for the new mount api.
>
> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
> ---
> fs/cifs/connect.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Thanks Ronnie!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-09 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 6:48 [PATCH] cifs: fix dfs-links Ronnie Sahlberg
2021-02-09 16:05 ` Paulo Alcantara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox