diff options
author | Christophe Jaillet <[email protected]> | 2016-08-26 06:49:09 +0200 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2016-09-02 13:46:32 -0400 |
commit | 6aaa382f1267644072f288916476879684502f73 (patch) | |
tree | c2f91ad0acf986642086661a44ac03ff8eaee1f9 /tools/perf/util/trace-event-scripting.c | |
parent | fffd68734dc685e208e86d8c5f6522cd695a8d60 (diff) |
IB/hfi1: Fix the size parameter to find_first_bit
The 2nd parameter of 'find_first_bit' is the number of bits to search.
In this case, we are passing 'sizeof(u64)' which is 8.
It is likely that the number of bits of 'port_mask' was expected here.
Use sizeof() * 8 to get the correct number.
It has been spotted by the following coccinelle script:
@@
expression ret, x;
@@
* ret = \(find_first_bit \| find_first_zero_bit\) (x, sizeof(...));
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions