diff options
author | Pedro Tammela <[email protected]> | 2023-05-29 12:33:35 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-05-31 00:02:24 -0700 |
commit | f4e4534850a9d18c250a93f8d7fbb51310828110 (patch) | |
tree | ce3dd0df6c9a5291ed2ddc843ba2cd773d97d2b5 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 36eec020fab668719b541f34d97f44e232ffa165 (diff) |
net/netlink: fix NETLINK_LIST_MEMBERSHIPS length report
The current code for the length calculation wrongly truncates the reported
length of the groups array, causing an under report of the subscribed
groups. To fix this, use 'BITS_TO_BYTES()' which rounds up the
division by 8.
Fixes: b42be38b2778 ("netlink: add API to retrieve all group memberships")
Signed-off-by: Pedro Tammela <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions