1. 06 Apr, 2010 3 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · cb4361c1
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (37 commits)
        smc91c92_cs: fix the problem of "Unable to find hardware address"
        r8169: clean up my printk uglyness
        net: Hook up cxgb4 to Kconfig and Makefile
        cxgb4: Add main driver file and driver Makefile
        cxgb4: Add remaining driver headers and L2T management
        cxgb4: Add packet queues and packet DMA code
        cxgb4: Add HW and FW support code
        cxgb4: Add register, message, and FW definitions
        netlabel: Fix several rcu_dereference() calls used without RCU read locks
        bonding: fix potential deadlock in bond_uninit()
        net: check the length of the socket address passed to connect(2)
        stmmac: add documentation for the driver.
        stmmac: fix kconfig for crc32 build error
        be2net: fix bug in vlan rx path for big endian architecture
        be2net: fix flashing on big endian architectures
        be2net: fix a bug in flashing the redboot section
        bonding: bond_xmit_roundrobin() fix
        drivers/net: Add missing unlock
        net: gianfar - align BD ring size console messages
        net: gianfar - initialize per-queue statistics
        ...
      cb4361c1
    • Dan Carpenter's avatar
      proc: copy_to_user() returns unsigned · 309361e0
      Dan Carpenter authored
      copy_to_user() returns the number of bytes left to be copied.
      
      This was a typo from: d82ef020 "proc: pagemap: Hold mmap_sem during
      page walk".
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Acked-by: default avatarMatt Mackall <mpm@selenic.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      309361e0
    • Nick Piggin's avatar
      Fix up possibly racy module refcounting · 5fbfb18d
      Nick Piggin authored
      Module refcounting is implemented with a per-cpu counter for speed.
      However there is a race when tallying the counter where a reference may
      be taken by one CPU and released by another.  Reference count summation
      may then see the decrement without having seen the previous increment,
      leading to lower than expected count.  A module which never has its
      actual reference drop below 1 may return a reference count of 0 due to
      this race.
      
      Module removal generally runs under stop_machine, which prevents this
      race causing bugs due to removal of in-use modules.  However there are
      other real bugs in module.c code and driver code (module_refcount is
      exported) where the callers do not run under stop_machine.
      
      Fix this by maintaining running per-cpu counters for the number of
      module refcount increments and the number of refcount decrements.  The
      increments are tallied after the decrements, so any decrement seen will
      always have its corresponding increment counted.  The final refcount is
      the difference of the total increments and decrements, preventing a
      low-refcount from being returned.
      Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
      Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5fbfb18d
  2. 05 Apr, 2010 22 commits
  3. 04 Apr, 2010 7 commits
  4. 03 Apr, 2010 8 commits