1. 07 10月, 2009 1 次提交
  2. 15 9月, 2009 1 次提交
  3. 12 9月, 2009 1 次提交
  4. 13 8月, 2009 1 次提交
    • M
      Use correct NET_RX_* returns for atalk_rcv() · 6885ffb3
      Mark Smith 提交于
      In all rx'd SKB cases, atalk_rcv() either eventually jumps to or falls through
          to the label out:, which  returns numeric 0. Numeric 0 corresponds to
          NET_RX_SUCCESS, which is incorrect in failed SKB cases.
      
          This patch makes atalk_rcv() provide the correct returns by:
      
          o  explicitly returning NET_RX_SUCCESS in the two success cases
          o  having the out: label return NET_RX_DROP, instead of numeric 0
          o  making the failed SKB labels and processing more consistent with other
             _rcv() routines in the kernel, simplifying validation and removing a
             backwards goto
      Signed-off-by: NMark Smith <markzzzsmith@yahoo.com.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6885ffb3
  5. 07 8月, 2009 1 次提交
  6. 13 7月, 2009 1 次提交
  7. 18 6月, 2009 1 次提交
  8. 17 6月, 2009 1 次提交
  9. 09 6月, 2009 1 次提交
  10. 25 5月, 2009 1 次提交
  11. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  12. 27 3月, 2009 1 次提交
  13. 10 3月, 2009 1 次提交
  14. 27 2月, 2009 1 次提交
  15. 01 2月, 2009 1 次提交
  16. 22 1月, 2009 1 次提交
  17. 08 1月, 2009 1 次提交
  18. 26 12月, 2008 1 次提交
    • J
      net/appletalk: Remove redundant test · 88a44e51
      Julia Lawall 提交于
      atif is tested for being NULL twice, with the same effect in each case.  I
      have kept the second test, as it seems to fit well with the comment above it.
      
      A simplified version of the semantic patch that makes this change is as
      follows: (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      expression E;
      position p1,p2;
      @@
      
      if (x@p1 == NULL || ...) { ... when forall
         return ...; }
      ... when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\)
      (
      x@p2 == NULL
      |
      x@p2 != NULL
      )
      
      // another path to the test that is not through p1?
      @s exists@
      local idexpression r.x;
      position r.p1,r.p2;
      @@
      
      ... when != x@p1
      (
      x@p2 == NULL
      |
      x@p2 != NULL
      )
      
      @fix depends on !s@
      position r.p1,r.p2;
      expression x,E;
      statement S1,S2;
      @@
      
      (
      - if ((x@p2 != NULL) || ...)
        S1
      |
      - if ((x@p2 == NULL) && ...) S1
      |
      - BUG_ON(x@p2 == NULL);
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      88a44e51
  19. 13 11月, 2008 1 次提交
    • W
      netdevice: safe convert to netdev_priv() #part-4 · 524ad0a7
      Wang Chen 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      This patch is a safe convert for netdev->priv to netdev_priv(netdev).
      Since all of the netdev->priv is only for read.
      But it is too big to be sent in one mail.
      I split it to 4 parts and make every part smaller than 100,000 bytes,
      which is max size allowed by vger.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      524ad0a7
  20. 04 11月, 2008 1 次提交
    • A
      net: '&' redux · 6d9f239a
      Alexey Dobriyan 提交于
      I want to compile out proc_* and sysctl_* handlers totally and
      stub them to NULL depending on config options, however usage of &
      will prevent this, since taking adress of NULL pointer will break
      compilation.
      
      So, drop & in front of every ->proc_handler and every ->strategy
      handler, it was never needed in fact.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d9f239a
  21. 28 10月, 2008 1 次提交
  22. 14 10月, 2008 1 次提交
  23. 26 7月, 2008 1 次提交
  24. 20 7月, 2008 1 次提交
  25. 26 3月, 2008 1 次提交
  26. 01 3月, 2008 1 次提交
  27. 29 2月, 2008 1 次提交
  28. 29 1月, 2008 3 次提交
  29. 01 11月, 2007 1 次提交
  30. 11 10月, 2007 9 次提交