1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-27 01:32:24 +02:00

[kernel] netfilter: fix IMQ bug on 2.6.24

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10508 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-02-20 17:08:01 +00:00
parent 8319ad97cd
commit bfc26bdfda

View File

@ -327,10 +327,10 @@ diff -Naurw linux-2.6.23/drivers/net/imq.c linux-2.6.23.imq/drivers/net/imq.c
+ numdevs--; + numdevs--;
+ +
+ for (i = 0, dev = imq_devs; i <= numdevs; i++, dev++) { + for (i = 0, dev = imq_devs; i <= numdevs; i++, dev++) {
+// SET_MODULE_OWNER(dev);
+ strcpy(dev->name, "imq%d"); + strcpy(dev->name, "imq%d");
+ dev->init = imq_dev_init; + dev->init = imq_dev_init;
+ dev->uninit = imq_dev_uninit; + dev->uninit = imq_dev_uninit;
+ dev->nd_net = &init_net;
+ +
+ if (register_netdev(dev) < 0) + if (register_netdev(dev) < 0)
+ goto err_register; + goto err_register;