Skip to content

Conversation

cathay4t
Copy link
Member

In kernel drivers/net/team/team_core.c, the function
team_nl_send_options_get() is using zero sized done message:

nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI);

This patch just generate [0u8;4] as buffer when got zero sized done
message received.

In kernel `drivers/net/team/team_core.c`, the function
`team_nl_send_options_get()` is using zero sized done message:

```c
nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI);
```

This patch just generate [0u8;4] as buffer when got zero sized done
message received.

Signed-off-by: Gris Ge <fge@redhat.com>
@cathay4t cathay4t merged commit 100413a into rust-netlink:main Aug 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant