Re: [PATCH] thunderbolt: tb: fix use after free in tb_activate_pcie_devices

From: Gustavo A. R. Silva
Date: Mon Nov 06 2017 - 08:17:00 EST



Quoting Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>:

On Sat, Nov 04, 2017 at 11:52:54PM -0500, Gustavo A. R. Silva wrote:
Add a ÌÌcontinue statement in order to avoid using a previously
free'd pointer tunnel in list_add.

Addresses-Coverity-ID: 1415336
Fixes: 9d3cce0b6136 ("thunderbolt: Introduce thunderbolt bus and connection manager")
Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>

Good catch!

Glad to help. :)


Acked-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>


Thanks
--
Gustavo A. R. Silva