Skip to contentSkip to conversation

mnl: initialize generic netlink version

PATCH Applied Stephen Hemminger 2 participants 2 messages Apr 15, 2024 – Apr 16, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mnl: initialize generic netlink version

The version field in mnlu was being passed in but never set. This meant that all places mnlu_gen_socket was used, the version would be uninitialized data from malloc().

---
 lib/mnl_utils.c | 2 ++
 1 file changed, 2 insertions(+)
lib/mnl_utils.c +2 -0
index af5aa4f9..6c8f527e 100644
@@ -193,6 +193,8 @@ int mnlu_gen_socket_open(struct mnlu_gen_socket *nlg, const char *family_name,
 	if (!nlg->nl)
 		goto err_socket_open;
 
+	nlg->version = version;
+
 	err = family_get(nlg, family_name);
 	if (err)
 		goto err_socket;
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 8 lines · On Mon, 15 Apr 2024 09:33:47 -0700 you wrote:

The version field in mnlu was being passed in but never set. This meant that all places mnlu_gen_socket was used, the version would be uninitialized data from malloc().

---
 lib/mnl_utils.c | 2 ++
 1 file changed, 2 insertions(+)

Here is the summary with links:
- mnl: initialize generic netlink version

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=0a1e1522cde9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html