aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/netprio_cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c
index 9ae183a9a381..72c638780805 100644
--- a/net/core/netprio_cgroup.c
+++ b/net/core/netprio_cgroup.c
@@ -108,7 +108,7 @@ static void extend_netdev_table(struct net_device *dev, u32 new_len)
108static void update_netdev_tables(void) 108static void update_netdev_tables(void)
109{ 109{
110 struct net_device *dev; 110 struct net_device *dev;
111 u32 max_len = atomic_read(&max_prioidx); 111 u32 max_len = atomic_read(&max_prioidx) + 1;
112 struct netprio_map *map; 112 struct netprio_map *map;
113 113
114 rtnl_lock(); 114 rtnl_lock();