thunderbolt: Fix for v6.15-rc7

This includes a single USB4/Thunderbolt fix for v6.15-rc7:
 
   - Prevent crash in tb_cfg_request_dequeue().
 
 This has been in linux-next with no reported issues.
 -----BEGIN PGP SIGNATURE-----
 
 iQJUBAABCgA+FiEEVTdhRGBbNzLrSUBaAP2fSd+ZWKAFAmgjW7UgHG1pa2Eud2Vz
 dGVyYmVyZ0BsaW51eC5pbnRlbC5jb20ACgkQAP2fSd+ZWKDcahAAi1JJrCoPeMdn
 /RI+n9OIuiEXEIOIZDtdvf/GAx3Y4ZmeCHD31gdd+W+PD3qkcTePHheMrduRLgTI
 I4y3ybTapqSvVTCQFNsLeTKXfADUiVvVvJoYMmnko3USB0qcQdtiGd0nMCBZMQH4
 9adudHxTKmZoOGcrk9nyTn6p6DdVZBVQ4KYkrodutI5PGTMj1d0lK2AMSx7/X9fW
 g5d/I/pO5aNM2opTTh+cW+t+uJu+Q2CBom4JA2wjXR2sPlKt4Nd5GAkoM90ljp0L
 KfFJu2hrEv8zrqDxn1tiypENo2x8KIlEtL3LaTr03zHEaI9RRoSqE7klkkX6lbHZ
 EQqhJHwYE7ivOBM4YCkhnNZ+KgrBizWOJmKeeJ/6BagsRTb0fqF06nrlby8UONGK
 +N2p68KuFX8u5yO1dduCH54KrUIP7wB2DYEvdc+iXzgMYvBsFJhHyNvDUXePnpWS
 fqcoQTtRmqCITChPCXPdpjjW9p8mD96+TkNaeOO6fFEZHUbLNTidJGoDE6QO+Mvn
 kkVcddeuWQpt7SrYNbEq9Ie7OLb/x8GV6rhorqsUjlkbZ807zKq5B4G6ykwcrRAa
 p+xRLsacqlawTWn0IXNHfF4X/MjzQExSPZ62hKA7SkavfMTXkfIlRb4J5eAzA4sr
 q//CmYsP9Ln049lagGSBJGP9KfTlWD8=
 =arQ9
 -----END PGP SIGNATURE-----

Merge tag 'thunderbolt-for-v6.15-rc7' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-next

Mika writes:

thunderbolt: Fix for v6.15-rc7

This includes a single USB4/Thunderbolt fix for v6.15-rc7:

  - Prevent crash in tb_cfg_request_dequeue().

This has been in linux-next with no reported issues.

* tag 'thunderbolt-for-v6.15-rc7' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt:
  thunderbolt: Do not double dequeue a configuration request
This commit is contained in:
Greg Kroah-Hartman 2025-05-21 12:26:05 +02:00
commit d5f4d0d2d7

View File

@ -151,6 +151,11 @@ static void tb_cfg_request_dequeue(struct tb_cfg_request *req)
struct tb_ctl *ctl = req->ctl;
mutex_lock(&ctl->request_queue_lock);
if (!test_bit(TB_CFG_REQUEST_ACTIVE, &req->flags)) {
mutex_unlock(&ctl->request_queue_lock);
return;
}
list_del(&req->list);
clear_bit(TB_CFG_REQUEST_ACTIVE, &req->flags);
if (test_bit(TB_CFG_REQUEST_CANCELED, &req->flags))