diff options
| author | Yuyang Huang <[email protected]> | 2024-12-21 10:00:07 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-23 18:26:43 +0000 |
| commit | aa4ad7c3f283fa94b80cf84605661700aa39d708 (patch) | |
| tree | 20dc0f538998486cdd628220b9d40fdb174db946 /drivers/fpga/zynq-fpga.c | |
| parent | selftests: drv-net: assume stats refresh is 0 if no ethtool -c support (diff) | |
| download | kernel-aa4ad7c3f283fa94b80cf84605661700aa39d708.tar.gz kernel-aa4ad7c3f283fa94b80cf84605661700aa39d708.zip | |
netlink: correct nlmsg size for multicast notifications
Corrected the netlink message size calculation for multicast group
join/leave notifications. The previous calculation did not account for
the inclusion of both IPv4/IPv6 addresses and ifa_cacheinfo in the
payload. This fix ensures that the allocated message size is
sufficient to hold all necessary information.
This patch also includes the following improvements:
* Uses GFP_KERNEL instead of GFP_ATOMIC when holding the RTNL mutex.
* Uses nla_total_size(sizeof(struct in6_addr)) instead of
nla_total_size(16).
* Removes unnecessary EXPORT_SYMBOL().
Fixes: 2c2b61d2138f ("netlink: add IGMP/MLD join/leave notifications")
Cc: Maciej Żenczykowski <[email protected]>
Cc: Lorenzo Colitti <[email protected]>
Signed-off-by: Yuyang Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
