netfilter: fix IMQ bug on 2.6.24

SVN-Revision: 10508
This commit is contained in:
Gabor Juhos 2008-02-20 17:08:01 +00:00
parent c68dfd4de4
commit bd91c79caa

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--;
+
+ for (i = 0, dev = imq_devs; i <= numdevs; i++, dev++) {
+// SET_MODULE_OWNER(dev);
+ strcpy(dev->name, "imq%d");
+ dev->init = imq_dev_init;
+ dev->uninit = imq_dev_uninit;
+ dev->nd_net = &init_net;
+
+ if (register_netdev(dev) < 0)
+ goto err_register;