]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
thunderbolt: Fix copy+paste error in match_service_id()
authorEric Biggers <ebiggers@kernel.org>
Mon, 21 Jul 2025 05:01:36 +0000 (22:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:22:48 +0000 (16:22 +0200)
commit 5cc1f66cb23cccc704e3def27ad31ed479e934a5 upstream.

The second instance of TBSVC_MATCH_PROTOCOL_VERSION seems to have been
intended to be TBSVC_MATCH_PROTOCOL_REVISION.

Fixes: d1ff70241a27 ("thunderbolt: Add support for XDomain discovery protocol")
Cc: stable <stable@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://lore.kernel.org/r/20250721050136.30004-1-ebiggers@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/domain.c

index f0de94f7acbf9ff82a13424666f393c7d54a8706..4414d44953d7e1263047713981b9ffd3292e80f2 100644 (file)
@@ -38,7 +38,7 @@ static bool match_service_id(const struct tb_service_id *id,
                        return false;
        }
 
-       if (id->match_flags & TBSVC_MATCH_PROTOCOL_VERSION) {
+       if (id->match_flags & TBSVC_MATCH_PROTOCOL_REVISION) {
                if (id->protocol_revision != svc->prtcrevs)
                        return false;
        }