Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 Sep 2009 17:37:28 +0000 (10:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 Sep 2009 17:37:28 +0000 (10:37 -0700)
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1623 commits)
  netxen: update copyright
  netxen: fix tx timeout recovery
  netxen: fix file firmware leak
  netxen: improve pci memory access
  netxen: change firmware write size
  tg3: Fix return ring size breakage
  netxen: build fix for INET=n
  cdc-phonet: autoconfigure Phonet address
  Phonet: back-end for autoconfigured addresses
  Phonet: fix netlink address dump error handling
  ipv6: Add IFA_F_DADFAILED flag
  net: Add DEVTYPE support for Ethernet based devices
  mv643xx_eth.c: remove unused txq_set_wrr()
  ucc_geth: Fix hangs after switching from full to half duplex
  ucc_geth: Rearrange some code to avoid forward declarations
  phy/marvell: Make non-aneg speed/duplex forcing work for 88E1111 PHYs
  drivers/net/phy: introduce missing kfree
  drivers/net/wan: introduce missing kfree
  net: force bridge module(s) to be GPL
  Subject: [PATCH] appletalk: Fix skb leak when ipddp interface is not loaded
  ...

Fixed up trivial conflicts:

 - arch/x86/include/asm/socket.h

   converted to <asm-generic/socket.h> in the x86 tree.  The generic
   header has the same new #define's, so that works out fine.

 - drivers/net/tun.c

   fix conflict between 89f56d1e9 ("tun: reuse struct sock fields") that
   switched over to using 'tun->socket.sk' instead of the redundantly
   available (and thus removed) 'tun->sk', and 2b980dbd ("lsm: Add hooks
   to the TUN driver") which added a new 'tun->sk' use.

   Noted in 'next' by Stephen Rothwell.

16 files changed:
1  2 
Documentation/feature-removal-schedule.txt
Documentation/kernel-parameters.txt
MAINTAINERS
arch/sparc/kernel/sys32.S
drivers/infiniband/hw/amso1100/c2.c
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/net/cxgb3/cxgb3_main.c
drivers/net/gianfar.c
drivers/net/tun.c
drivers/s390/net/netiucv.c
include/linux/pci_ids.h
net/core/dev.c
net/ipv4/ip_output.c
net/sched/sch_api.c

Simple merge
diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 87214a257d2ae3431777e94e375e65bb33878828,589a44acdc76ec7c77949beed85c713f612f6ce7..3f5d28851aa20e4b175a05133faf27161f199f0c
@@@ -930,14 -935,6 +930,14 @@@ static int tun_set_iff(struct net *net
                else
                        return -EINVAL;
  
-               err = security_tun_dev_attach(tun->sk);
 +              if (((tun->owner != -1 && cred->euid != tun->owner) ||
 +                   (tun->group != -1 && !in_egroup_p(tun->group))) &&
 +                  !capable(CAP_NET_ADMIN))
 +                      return -EPERM;
++              err = security_tun_dev_attach(tun->socket.sk);
 +              if (err < 0)
 +                      return err;
 +
                err = tun_attach(tun, file);
                if (err < 0)
                        return err;
                sk->sk_write_space = tun_sock_write_space;
                sk->sk_sndbuf = INT_MAX;
  
-               tun->sk = sk;
                container_of(sk, struct tun_sock, sk)->tun = tun;
  
 +              security_tun_dev_post_create(sk);
 +
                tun_net_init(dev);
  
                if (strchr(dev->name, '%')) {
Simple merge
Simple merge
diff --cc net/core/dev.c
index 278d489aad3bcecadcbbc38413ba4143c507159b,f843a0c5ecf91bc34f47895c042630a88d7986ed..84945470ab38cc073ff71eb8dac14ad653c9cad0
@@@ -1031,9 -1041,10 +1041,10 @@@ void dev_load(struct net *net, const ch
        dev = __dev_get_by_name(net, name);
        read_unlock(&dev_base_lock);
  
 -      if (!dev && capable(CAP_SYS_MODULE))
 +      if (!dev && capable(CAP_NET_ADMIN))
                request_module("%s", name);
  }
+ EXPORT_SYMBOL(dev_load);
  
  /**
   *    dev_open        - prepare an interface for use.
Simple merge
Simple merge