[PATCH 23/31] net/ipv4: route: fix counting of allocated net routes

Jean-Baptiste Tr├ędez jean-baptiste.tredez at alstefgroup.com
Tue May 11 18:05:27 CEST 2021


From: Philippe Gerum <rpm at xenomai.org>

Signed-off-by: Philippe Gerum <rpm at xenomai.org>
---
 kernel/drivers/net/stack/ipv4/route.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/drivers/net/stack/ipv4/route.c b/kernel/drivers/net/stack/ipv4/route.c
index d9a9c8b9b..14a8b2932 100644
--- a/kernel/drivers/net/stack/ipv4/route.c
+++ b/kernel/drivers/net/stack/ipv4/route.c
@@ -745,7 +745,7 @@ static inline void rt_free_net_route(struct net_route *rt)
 {
 	rt->next = free_net_route;
 	free_net_route = rt;
-	allocated_host_routes--;
+	allocated_net_routes--;
 }
 
 /***
-- 
2.17.1




More information about the Xenomai mailing list