diff options
Diffstat (limited to 'net/ieee802154/af_ieee802154.c')
-rw-r--r-- | net/ieee802154/af_ieee802154.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ieee802154/af_ieee802154.c b/net/ieee802154/af_ieee802154.c index cd949d5e451b..bad1c49fd960 100644 --- a/net/ieee802154/af_ieee802154.c +++ b/net/ieee802154/af_ieee802154.c | |||
@@ -234,14 +234,14 @@ static const struct proto_ops ieee802154_dgram_ops = { | |||
234 | * set the state. | 234 | * set the state. |
235 | */ | 235 | */ |
236 | static int ieee802154_create(struct net *net, struct socket *sock, | 236 | static int ieee802154_create(struct net *net, struct socket *sock, |
237 | int protocol) | 237 | int protocol, int kern) |
238 | { | 238 | { |
239 | struct sock *sk; | 239 | struct sock *sk; |
240 | int rc; | 240 | int rc; |
241 | struct proto *proto; | 241 | struct proto *proto; |
242 | const struct proto_ops *ops; | 242 | const struct proto_ops *ops; |
243 | 243 | ||
244 | if (net != &init_net) | 244 | if (!net_eq(net, &init_net)) |
245 | return -EAFNOSUPPORT; | 245 | return -EAFNOSUPPORT; |
246 | 246 | ||
247 | switch (sock->type) { | 247 | switch (sock->type) { |
@@ -285,7 +285,7 @@ out: | |||
285 | return rc; | 285 | return rc; |
286 | } | 286 | } |
287 | 287 | ||
288 | static struct net_proto_family ieee802154_family_ops = { | 288 | static const struct net_proto_family ieee802154_family_ops = { |
289 | .family = PF_IEEE802154, | 289 | .family = PF_IEEE802154, |
290 | .create = ieee802154_create, | 290 | .create = ieee802154_create, |
291 | .owner = THIS_MODULE, | 291 | .owner = THIS_MODULE, |