1. 17 9月, 2011 1 次提交
  2. 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
  3. 17 6月, 2011 1 次提交
  4. 07 6月, 2011 1 次提交
  5. 02 6月, 2011 1 次提交
  6. 23 5月, 2011 4 次提交
  7. 16 5月, 2011 10 次提交
  8. 18 4月, 2011 1 次提交
  9. 12 4月, 2011 5 次提交
  10. 31 3月, 2011 1 次提交
  11. 09 2月, 2011 1 次提交
    • D
      net/caif: Fix dangling list pointer in freed object on error. · b2df5a84
      David S. Miller 提交于
      rtnl_link_ops->setup(), and the "setup" callback passed to alloc_netdev*(),
      cannot make state changes which need to be undone on failure.  There is
      no cleanup mechanism available at this point.
      
      So we have to add the caif private instance to the global list once we
      are sure that register_netdev() has succedded in ->newlink().
      
      Otherwise, if register_netdev() fails, the caller will invoke free_netdev()
      and we will have a reference to freed up memory on the chnl_net_list.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b2df5a84
  12. 20 1月, 2011 1 次提交
  13. 16 1月, 2011 1 次提交
  14. 11 1月, 2011 2 次提交
  15. 23 11月, 2010 1 次提交
  16. 04 11月, 2010 2 次提交
  17. 06 10月, 2010 1 次提交
  18. 05 10月, 2010 1 次提交
  19. 22 9月, 2010 4 次提交
反馈
建议
客服 返回
顶部