mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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:
commit
d7fc02c7ba
1394 changed files with 113445 additions and 70680 deletions
|
|
@ -425,12 +425,13 @@ static struct proto nr_proto = {
|
|||
.obj_size = sizeof(struct nr_sock),
|
||||
};
|
||||
|
||||
static int nr_create(struct net *net, struct socket *sock, int protocol)
|
||||
static int nr_create(struct net *net, struct socket *sock, int protocol,
|
||||
int kern)
|
||||
{
|
||||
struct sock *sk;
|
||||
struct nr_sock *nr;
|
||||
|
||||
if (net != &init_net)
|
||||
if (!net_eq(net, &init_net))
|
||||
return -EAFNOSUPPORT;
|
||||
|
||||
if (sock->type != SOCK_SEQPACKET || protocol != 0)
|
||||
|
|
@ -1372,7 +1373,7 @@ static const struct file_operations nr_info_fops = {
|
|||
};
|
||||
#endif /* CONFIG_PROC_FS */
|
||||
|
||||
static struct net_proto_family nr_family_ops = {
|
||||
static const struct net_proto_family nr_family_ops = {
|
||||
.family = PF_NETROM,
|
||||
.create = nr_create,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -597,15 +597,15 @@ struct net_device *nr_dev_first(void)
|
|||
{
|
||||
struct net_device *dev, *first = NULL;
|
||||
|
||||
read_lock(&dev_base_lock);
|
||||
for_each_netdev(&init_net, dev) {
|
||||
rcu_read_lock();
|
||||
for_each_netdev_rcu(&init_net, dev) {
|
||||
if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
|
||||
if (first == NULL || strncmp(dev->name, first->name, 3) < 0)
|
||||
first = dev;
|
||||
}
|
||||
if (first)
|
||||
dev_hold(first);
|
||||
read_unlock(&dev_base_lock);
|
||||
rcu_read_unlock();
|
||||
|
||||
return first;
|
||||
}
|
||||
|
|
@ -617,16 +617,17 @@ struct net_device *nr_dev_get(ax25_address *addr)
|
|||
{
|
||||
struct net_device *dev;
|
||||
|
||||
read_lock(&dev_base_lock);
|
||||
for_each_netdev(&init_net, dev) {
|
||||
if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) {
|
||||
rcu_read_lock();
|
||||
for_each_netdev_rcu(&init_net, dev) {
|
||||
if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM &&
|
||||
ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) {
|
||||
dev_hold(dev);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
dev = NULL;
|
||||
out:
|
||||
read_unlock(&dev_base_lock);
|
||||
rcu_read_unlock();
|
||||
return dev;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue