diff options
Diffstat (limited to 'net/xdp/xsk.c')
| -rw-r--r-- | net/xdp/xsk.c | 4 | 
1 files changed, 0 insertions, 4 deletions
| diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c index f16074eb53c7..28ef3f4465ae 100644 --- a/net/xdp/xsk.c +++ b/net/xdp/xsk.c @@ -794,9 +794,7 @@ static int xsk_release(struct socket *sock)  	sk_del_node_init_rcu(sk);  	mutex_unlock(&net->xdp.lock); -	local_bh_disable();  	sock_prot_inuse_add(net, sk->sk_prot, -1); -	local_bh_enable();  	xsk_delete_from_maps(xs);  	mutex_lock(&xs->mutex); @@ -1396,9 +1394,7 @@ static int xsk_create(struct net *net, struct socket *sock, int protocol,  	sk_add_node_rcu(sk, &net->xdp.list);  	mutex_unlock(&net->xdp.lock); -	local_bh_disable();  	sock_prot_inuse_add(net, &xsk_proto, 1); -	local_bh_enable();  	return 0;  } |