8000 bridge_info: implement missing rtnl_link_info_ops::io_clone() by KanjiMonster · Pull Request #426 · thom311/libnl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bridge_info: implement missing rtnl_link_info_ops::io_clone() #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

KanjiMonster
Copy link
Contributor

Link info ops that use link info also need to implement rtnl_link_info_ops::io_clone(), else cloning the link will result in a broken object, and trying to use any rtnl_link_bridge_*() accessors will result in a null pointer access due to rtnl_link::l_info not being taken over.

So implement the missing rtnl_link_info_ops::io_clone() callback.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")

Link info ops that use link info also need to implement
rtnl_link_info_ops::io_clone(), else cloning the link will result in a
broken object, and trying to use any rtnl_link_bridge_*() accessors will
result in a null pointer access due to rtnl_link::l_info not being taken
over.

So implement the missing rtnl_link_info_ops::io_clone() callback.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")
Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
thom311 pushed a commit that referenced this pull request Jun 3, 2025
Link info ops that use link info also need to implement
rtnl_link_info_ops::io_clone(), else cloning the link will result in a
broken object, and trying to use any rtnl_link_bridge_*() accessors will
result in a null pointer access due to rtnl_link::l_info not being taken
over.

So implement the missing rtnl_link_info_ops::io_clone() callback.

Fixes: 7391a38 ("bridge: Add support for link_info of a bridge")
Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>

#426
@thom311
Copy link
Owner
thom311 commented Jun 3, 2025

merged. Thank you!!

@thom311 thom311 closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0