Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
Linus Torvalds [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
@@@ -930,14 -935,6 +930,14 @@@ static int tun_set_iff(struct net *net
                else
                        return -EINVAL;
  
 +              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->sk);
++              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
@@@ -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