aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2011-03-02 20:35:28 +0900
committerGreg Kroah-Hartman <[email protected]>2011-03-02 19:52:28 -0500
commit962f3ffa927f2e777a4193843c45ffa6e52ff4b6 (patch)
treec28bc6eb94b6e4d4de5a4e918b7cf170f4e2485f /tools/perf/scripts/python/futex-contention.py
parent60b0bf0f11a02a6c288c7a923b2521aa7cfdc6c3 (diff)
wusb: fix find_first_zero_bit() return value check
In wusb_cluster_id_get(), if no zero bits exist in wusb_cluster_id_table, find_first_zero_bit() returns CLUSTER_IDS. But it is impossible to detect that the bitmap is full because there is an off-by-one error in the return value check. It will cause unexpected memory access by setting bit out of wusb_cluster_id_table bitmap, and caller will get wrong cluster id. Signed-off-by: Akinobu Mita <[email protected]> Cc: [email protected] Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions