[kernel] netfilter: fix IMQ bug on 2.6.24
authorGabor Juhos <juhosg@openwrt.org>
Wed, 20 Feb 2008 17:08:01 +0000 (17:08 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 20 Feb 2008 17:08:01 +0000 (17:08 +0000)
SVN-Revision: 10508

target/linux/generic-2.6/patches-2.6.24/150-netfilter_imq.patch

index d5f50d7e74604b47639dde043d199f5fa188826b..4ecef1b1dbbfc9126bcc3126c272cb27518d439d 100644 (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;