On 2021-05-19 6:57 PM, lin huang wrote:
netdev-linux.c : nl_sock_listen_all_nsid triggers NULL deref. Signed-off-by: miter <[email protected]> --- lib/netdev-linux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 15b25084b..0994044ec 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -634,7 +634,9 @@ netdev_linux_notify_sock(void) } } } - nl_sock_listen_all_nsid(sock, true); + if (sock) { + nl_sock_listen_all_nsid(sock, true); + } ovsthread_once_done(&once); } -- 2.31.1 _______________________________________________ dev mailing list [email protected] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-dev&data=04%7C01%7Croid%40nvidia.com%7C215ca7c887024f7daef208d91adecd05%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637570366499393944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Iz3GaO7wuuEtcEmKdN5tQHdF48pyhARZoJvw1HGQb9E%3D&reserved=0
Hi, Can you fix the checkpatch warning? Thanks, Roi _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
