mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
thunderbolt: tb: fix use after free in tb_activate_pcie_devices
[ Upstream commita2e373438f] Add a ̣̣continue statement in order to avoid using a previously free'd pointer tunnel in list_add. Addresses-Coverity-ID: 1415336 Fixes:9d3cce0b61("thunderbolt: Introduce thunderbolt bus and connection manager") Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
837da470dc
commit
c4e7af2833
@@ -225,6 +225,7 @@ static void tb_activate_pcie_devices(struct tb *tb)
|
||||
tb_port_info(up_port,
|
||||
"PCIe tunnel activation failed, aborting\n");
|
||||
tb_pci_free(tunnel);
|
||||
continue;
|
||||
}
|
||||
|
||||
list_add(&tunnel->list, &tcm->tunnel_list);
|
||||
|
||||
Reference in New Issue
Block a user