aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/controller.c
diff options
context:
space:
mode:
authorPedro Tammela <[email protected]>2023-05-29 15:33:35 +0000
committerJakub Kicinski <[email protected]>2023-05-31 07:02:24 +0000
commitf4e4534850a9d18c250a93f8d7fbb51310828110 (patch)
treece3dd0df6c9a5291ed2ddc843ba2cd773d97d2b5 /drivers/platform/surface/aggregator/controller.c
parentnet: sched: fix NULL pointer dereference in mq_attach (diff)
downloadkernel-f4e4534850a9d18c250a93f8d7fbb51310828110.tar.gz
kernel-f4e4534850a9d18c250a93f8d7fbb51310828110.zip
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 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions