aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2012-06-01 10:06:23 +0200
committerSarah Sharp <[email protected]>2012-06-13 16:37:28 -0700
commit46ed8f00d8982e49f8fe2c1a9cea192f640cb3ba (patch)
tree222dcd651ee6e84e1877da9881f28f4cd91964d0 /tools/perf/util/scripting-engines/trace-event-python.c
parente25e62aecac42379e113c63a674a86ae3ebbec8d (diff)
xhci: Fix invalid loop check in xhci_free_tt_info()
xhci_free_tt_info() may access the invalid memory when it removes the last entry but the list is not empty. Then tt_next reaches to the list head but it still tries to check the tt_info of that entry. This patch fixes the bug and cleans up the messy code by rewriting with a simple list_for_each_entry_safe(). This patch should be backported to kernels as old as 3.2, that contain the commit 839c817ce67178ca3c7c7ad534c571bba1e69ebe "xhci: Store information about roothubs and TTs." Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Sarah Sharp <[email protected]> Reviewed-by: Oliver Neukum <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions