]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: fix return value of parse_dfs_referrals()
authorPaulo Alcantara <pc@manguebit.com>
Fri, 10 Jan 2025 19:45:44 +0000 (16:45 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Jan 2025 01:34:00 +0000 (19:34 -0600)
commitbfc1155030151912e7c5426449c7703dad45a890
tree3eab7579c84449ead29749a6c98ba15fe68eb48c
parent5433c629e8d4eee77233a2bc88075886dc6e37ef
smb: client: fix return value of parse_dfs_referrals()

Return -ENOENT in parse_dfs_referrals() when server returns no targets
for a referral request as specified in

  MS-DFSC 3.1.5.4.3 Receiving a Root Referral Response or Link
  Referral Response:

    > If the referral request is successful, but the NumberOfReferrals
    > field in the referral header (as specified in section 2.2.4) is
    > 0, the DFS server could not find suitable targets to return to
    > the client.  In this case, the client MUST fail the original I/O
    > operation with STATUS_OBJECT_PATH_NOT_FOUND.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/misc.c
fs/smb/client/smb2ops.c