mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
thunderbolt: tb: fix use after free in tb_activate_pcie_devices
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 <[email protected]>
Acked-by: Mika Westerberg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
cc52841422
commit
a2e373438f
1 changed files with 1 additions and 0 deletions
|
|
@ -224,6 +224,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue