1. 06 12月, 2011 3 次提交
  2. 01 12月, 2011 2 次提交
  3. 01 11月, 2011 1 次提交
  4. 26 10月, 2011 1 次提交
    • D
      caif: Fix BUG() with network namespaces · 08613e46
      David Woodhouse 提交于
      The caif code will register its own pernet_operations, and then register
      a netdevice_notifier. Each time the netdevice_notifier is triggered,
      it'll do some stuff... including a lookup of its own pernet stuff with
      net_generic().
      
      If the net_generic() call ever returns NULL, the caif code will BUG().
      That doesn't seem *so* unreasonable, I suppose — it does seem like it
      should never happen.
      
      However, it *does* happen. When we clone a network namespace,
      setup_net() runs through all the pernet_operations one at a time. It
      gets to loopback before it gets to caif. And loopback_net_init()
      registers a netdevice... while caif hasn't been initialised. So the caif
      netdevice notifier triggers, and immediately goes BUG().
      
      We could imagine a complex and overengineered solution to this generic
      class of problems, but this patch takes the simple approach. It just
      makes caif_device_notify() *not* go looking for its pernet data
      structures if the device it's being notified about isn't a caif device
      in the first place.
      
      Cc: stable@kernel.org
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      Acked-by: NSjur Brændeland <sjur.brandeland@stericsson.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      08613e46
  5. 17 9月, 2011 1 次提交
  6. 22 6月, 2011 1 次提交
    • J
      Remove redundant linux/version.h includes from net/ · dec17b74
      Jesper Juhl 提交于
      It was suggested by "make versioncheck" that the follwing includes of
      linux/version.h are redundant:
      
        /home/jj/src/linux-2.6/net/caif/caif_dev.c: 14 linux/version.h not needed.
        /home/jj/src/linux-2.6/net/caif/chnl_net.c: 10 linux/version.h not needed.
        /home/jj/src/linux-2.6/net/ipv4/gre.c: 19 linux/version.h not needed.
        /home/jj/src/linux-2.6/net/netfilter/ipset/ip_set_core.c: 20 linux/version.h not needed.
        /home/jj/src/linux-2.6/net/netfilter/xt_set.c: 16 linux/version.h not needed.
      
      and it seems that it is right.
      
      Beyond manually inspecting the source files I also did a few build
      tests with various configs to confirm that including the header in
      those files is indeed not needed.
      
      Here's a patch to remove the pointless includes.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Acked-by: NJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dec17b74
  7. 23 5月, 2011 1 次提交
  8. 16 5月, 2011 3 次提交
  9. 18 4月, 2011 1 次提交
  10. 12 4月, 2011 2 次提交
  11. 04 11月, 2010 1 次提交
  12. 22 9月, 2010 1 次提交
  13. 07 9月, 2010 2 次提交
  14. 21 6月, 2010 1 次提交
  15. 18 5月, 2010 1 次提交
  16. 29 4月, 2010 3 次提交
  17. 31 3月, 2010 1 次提交