aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@chromium.org>2020-10-29 15:27:32 -0700
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-11-12 21:32:08 +0100
commit7ab5a673f4ce65875c76e9812d2e6da063b87fb7 (patch)
tree40cfdbed6f41712552a61754d13ee3adf8393671 /tools/perf/scripts/python/export-to-sqlite.py
parent0498710be002b35bcb43895c4133a4c4bbfd837e (diff)
platform/chrome: cros_ec_typec: Fix remove partner logic
The cros_unregister_ports() function can be called in situations where the partner has not been registered yet, and so its related data structures would not have been initialized. Calling cros_typec_remove_partner() in such a situation can lead to null pointer dereferences. So, only call cros_typec_remove_partner() if there is a valid registered partner pointer. Signed-off-by: Prashant Malani <pmalani@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20201029222738.482366-3-pmalani@chromium.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions