Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1815 commits) mac80211: fix reorder buffer release iwmc3200wifi: Enable wimax core through module parameter iwmc3200wifi: Add wifi-wimax coexistence mode as a module parameter iwmc3200wifi: Coex table command does not expect a response iwmc3200wifi: Update wiwi priority table iwlwifi: driver version track kernel version iwlwifi: indicate uCode type when fail dump error/event log iwl3945: remove duplicated event logging code b43: fix two warnings ipw2100: fix rebooting hang with driver loaded cfg80211: indent regulatory messages with spaces iwmc3200wifi: fix NULL pointer dereference in pmkid update mac80211: Fix TX status reporting for injected data frames ath9k: enable 2GHz band only if the device supports it airo: Fix integer overflow warning rt2x00: Fix padding bug on L2PAD devices. WE: Fix set events not propagated b43legacy: avoid PPC fault during resume b43: avoid PPC fault during resume tcp: fix a timewait refcnt race ... Fix up conflicts due to sysctl cleanups (dead sysctl_check code and CTL_UNNUMBERED removed) in kernel/sysctl_check.c net/ipv4/sysctl_net_ipv4.c net/ipv6/addrconf.c net/sctp/sysctl.c
This commit is contained in:
@@ -621,7 +621,8 @@ out:
|
||||
return sk;
|
||||
}
|
||||
|
||||
static int unix_create(struct net *net, struct socket *sock, int protocol)
|
||||
static int unix_create(struct net *net, struct socket *sock, int protocol,
|
||||
int kern)
|
||||
{
|
||||
if (protocol && protocol != PF_UNIX)
|
||||
return -EPROTONOSUPPORT;
|
||||
@@ -1032,8 +1033,8 @@ static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr,
|
||||
goto out;
|
||||
addr_len = err;
|
||||
|
||||
if (test_bit(SOCK_PASSCRED, &sock->flags)
|
||||
&& !u->addr && (err = unix_autobind(sock)) != 0)
|
||||
if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr &&
|
||||
(err = unix_autobind(sock)) != 0)
|
||||
goto out;
|
||||
|
||||
timeo = sock_sndtimeo(sk, flags & O_NONBLOCK);
|
||||
@@ -1258,7 +1259,7 @@ static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_
|
||||
{
|
||||
struct sock *sk = sock->sk;
|
||||
struct unix_sock *u;
|
||||
struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr;
|
||||
DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, uaddr);
|
||||
int err = 0;
|
||||
|
||||
if (peer) {
|
||||
@@ -1377,8 +1378,8 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (test_bit(SOCK_PASSCRED, &sock->flags)
|
||||
&& !u->addr && (err = unix_autobind(sock)) != 0)
|
||||
if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr
|
||||
&& (err = unix_autobind(sock)) != 0)
|
||||
goto out;
|
||||
|
||||
err = -EMSGSIZE;
|
||||
@@ -2216,7 +2217,7 @@ static const struct file_operations unix_seq_fops = {
|
||||
|
||||
#endif
|
||||
|
||||
static struct net_proto_family unix_family_ops = {
|
||||
static const struct net_proto_family unix_family_ops = {
|
||||
.family = PF_UNIX,
|
||||
.create = unix_create,
|
||||
.owner = THIS_MODULE,
|
||||
|
||||
Reference in New Issue
Block a user