1. 17 1月, 2012 1 次提交
  2. 23 12月, 2011 1 次提交
  3. 20 12月, 2011 1 次提交
  4. 07 12月, 2011 2 次提交
  5. 06 12月, 2011 3 次提交
  6. 01 12月, 2011 3 次提交
  7. 22 11月, 2011 1 次提交
  8. 01 11月, 2011 2 次提交
  9. 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
  10. 04 10月, 2011 1 次提交
  11. 17 9月, 2011 1 次提交
  12. 29 8月, 2011 1 次提交
    • J
      caif: Remove OOM messages, use kzalloc · 7ac2ed0c
      Joe Perches 提交于
      Remove per site OOM messages because they duplicate
      the generic mm subsystem OOM message.
      
      Use kzalloc instead of kmalloc/memset
      when next to the OOM message removals.
      
      Reduces object size (allyesconfig ~2%)
      
      $ size -t drivers/net/caif/built-in.o.old net/caif/built-in.o.old
         text	   data	    bss	    dec	    hex	filename
        32297	    700	   8224	  41221	   a105	drivers/net/caif/built-in.o.old
        72159	   1317	  20552	  94028	  16f4c	net/caif/built-in.o.old
       104456	   2017	  28776	 135249	  21051	(TOTALS)
      $ size -t drivers/net/caif/built-in.o.new net/caif/built-in.o.new
         text	   data	    bss	    dec	    hex	filename
        31975	    700	   8184	  40859	   9f9b	drivers/net/caif/built-in.o.new
        70748	   1317	  20152	  92217	  16839	net/caif/built-in.o.new
       102723	   2017	  28336	 133076	  207d4	(TOTALS)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7ac2ed0c
  13. 02 8月, 2011 1 次提交
  14. 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
  15. 17 6月, 2011 1 次提交
  16. 07 6月, 2011 1 次提交
  17. 02 6月, 2011 1 次提交
  18. 23 5月, 2011 4 次提交
  19. 16 5月, 2011 10 次提交
  20. 18 4月, 2011 1 次提交
  21. 12 4月, 2011 2 次提交