diff options
author | Jacob Keller <[email protected]> | 2019-07-25 02:54:01 -0700 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2019-08-26 23:27:10 -0700 |
commit | 35b4f4372f91d79632e8881b8c4a8f7802ff12f4 (patch) | |
tree | 538dc850db35e4d6c214acd7f9e2c427dc78164a /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 9c7dd7566d189426dd013edc3ddd00c1d981a8a0 (diff) |
ice: fix ice_is_tc_ena
ice_is_tc_ena is used to check whether a given traffic class is
enabled. Because there are only 8 traffic classes, the function took
a u8 bitmap. This causes problems because it is cast to an unsigned
long causing a static analysis warning regarding Out-of-bounds read.
Fix this by simply updating ice_is_tc_ena to take an unsigned long.
Passing a u8 to this function should implicitly convert the value.
Signed-off-by: Jacob Keller <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions