aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-05-23 14:40:57 +0200
committerFelix Fietkau <nbd@nbd.name>2020-05-28 17:57:24 +0200
commit5e616ad216ef560b2a856c858137c772351eee9f (patch)
tree84772c3bb9f269d3912b33baeb621e5c1fe925de /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parentec2bb3a570ec5bfafb71113b3617929434de5ff0 (diff)
mt76: fix wcid allocation issues
mt76 core uses ffs() to find the next free bit. This works well for 32 bit architectures where BITS_PER_LONG is 32. ffs only checks 32 bit values, so allocation fails on 64 bit architectures. Additionally, the wcid mask array was too small in cases where the array was not a multiple of BITS_PER_LONG. Fix this by making the wcid mask array u32 instead and use DIV_ROUND_UP for the size, just in case we ever bump it to a value that's not a multiple of 32. Reported-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions