since we cannot access the ipc tcon object, force the use of the ipc tid when crafting DFS resolving ioctl. Signed-off-by: Aurelien Aptel <aaptel@xxxxxxxx> --- fs/cifs/smb2pdu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 5ca5ea46..6d5b8db 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -1645,6 +1645,10 @@ SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, if (rc) return rc; + /* XXX: how can we access the tcon of the IPC of the host? */ + if (opcode == FSCTL_DFS_GET_REFERRALS) { + req->hdr.TreeId = ses->ipc_tid; + } req->CtlCode = cpu_to_le32(opcode); req->PersistentFileId = persistent_fid; req->VolatileFileId = volatile_fid; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html