You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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:
+6
-3
@@ -140,14 +140,17 @@ static struct proto llc_proto = {
|
||||
|
||||
/**
|
||||
* llc_ui_create - alloc and init a new llc_ui socket
|
||||
* @net: network namespace (must be default network)
|
||||
* @sock: Socket to initialize and attach allocated sk to.
|
||||
* @protocol: Unused.
|
||||
* @kern: on behalf of kernel or userspace
|
||||
*
|
||||
* Allocate and initialize a new llc_ui socket, validate the user wants a
|
||||
* socket type we have available.
|
||||
* Returns 0 upon success, negative upon failure.
|
||||
*/
|
||||
static int llc_ui_create(struct net *net, struct socket *sock, int protocol)
|
||||
static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
|
||||
int kern)
|
||||
{
|
||||
struct sock *sk;
|
||||
int rc = -ESOCKTNOSUPPORT;
|
||||
@@ -155,7 +158,7 @@ static int llc_ui_create(struct net *net, struct socket *sock, int protocol)
|
||||
if (!capable(CAP_NET_RAW))
|
||||
return -EPERM;
|
||||
|
||||
if (net != &init_net)
|
||||
if (!net_eq(net, &init_net))
|
||||
return -EAFNOSUPPORT;
|
||||
|
||||
if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) {
|
||||
@@ -1092,7 +1095,7 @@ out:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static struct net_proto_family llc_ui_family_ops = {
|
||||
static const struct net_proto_family llc_ui_family_ops = {
|
||||
.family = PF_LLC,
|
||||
.create = llc_ui_create,
|
||||
.owner = THIS_MODULE,
|
||||
|
||||
Reference in New Issue
Block a user