From 2e97d2510796d9517bff237e727c8fbeb9122538 Mon Sep 17 00:00:00 2001 From: Long Li Date: Fri, 25 Sep 2020 23:33:39 +0000 Subject: [PATCH 1/2] RH6: put idev after using it --- hv-rhel6.x/hv/provider.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hv-rhel6.x/hv/provider.c b/hv-rhel6.x/hv/provider.c index 38eb8fcce..4dbac9bdc 100644 --- a/hv-rhel6.x/hv/provider.c +++ b/hv-rhel6.x/hv/provider.c @@ -2778,6 +2778,7 @@ static int start_bind_nic(void) continue; for (ifa = (idev)->ifa_list; ifa && !(ifa->ifa_flags&IFA_F_SECONDARY); ifa = ifa->ifa_next) hvnd_try_bind_nic(dev->dev_addr, ifa->ifa_address); + in_dev_put(idev); } rtnl_unlock(); From 12b5cbe7b9955370e0d5ded5c010c8c28a62c127 Mon Sep 17 00:00:00 2001 From: Long Li Date: Fri, 25 Sep 2020 23:33:57 +0000 Subject: [PATCH 2/2] RH7: put idev after using it --- hv-rhel7.x/hv/provider.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hv-rhel7.x/hv/provider.c b/hv-rhel7.x/hv/provider.c index cfeee7be8..8b5604c55 100644 --- a/hv-rhel7.x/hv/provider.c +++ b/hv-rhel7.x/hv/provider.c @@ -2864,6 +2864,7 @@ static int start_bind_nic(void) for (ifa = (idev)->ifa_list; ifa && !(ifa->ifa_flags&IFA_F_SECONDARY); ifa = ifa->ifa_next) { hvnd_try_bind_nic(dev->dev_addr, ifa->ifa_address); } + in_dev_put(idev); } rtnl_unlock();