Commit ffb97452 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] net_shaper.c wrong variable on exit

From:  Marcus Alanen <maalanen@ra.abo.fi>

  "shapers_registered" is the amount of netdevices registered,
  "shapers" is the amount of shapers we try to initialize.
parent 4f20b243
......@@ -738,7 +738,7 @@ static void __exit shaper_exit (void)
{
int i;
for (i = 0; i < shapers; i++)
for (i = 0; i < shapers_registered; i++)
unregister_netdev(&devs[i]);
kfree(devs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment