diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-01-04 22:25:07 +1100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-01-05 09:33:14 +0100 |
commit | d16b46e4fd8bc6063624605f25b8c0835bb1fbe3 (patch) | |
tree | 2082d0d7f510842ede6ba05a671ed7d4693b7a09 /net/xfrm/xfrm_input.c | |
parent | 2f10a61cee8fdb9f8da90f5db687e1862b22cf06 (diff) | |
download | linux-d16b46e4fd8bc6063624605f25b8c0835bb1fbe3.tar.gz linux-d16b46e4fd8bc6063624605f25b8c0835bb1fbe3.tar.bz2 linux-d16b46e4fd8bc6063624605f25b8c0835bb1fbe3.zip |
xfrm: Use __skb_queue_tail in xfrm_trans_queue
We do not need locking in xfrm_trans_queue because it is designed
to use per-CPU buffers. However, the original code incorrectly
used skb_queue_tail which takes the lock. This patch switches
it to __skb_queue_tail instead.
Reported-and-tested-by: Artem Savkov <asavkov@redhat.com>
Fixes: acf568ee859f ("xfrm: Reinject transport-mode packets...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 3f6f6f8c9fa5..5b2409746ae0 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -518,7 +518,7 @@ int xfrm_trans_queue(struct sk_buff *skb, return -ENOBUFS; XFRM_TRANS_SKB_CB(skb)->finish = finish; - skb_queue_tail(&trans->queue, skb); + __skb_queue_tail(&trans->queue, skb); tasklet_schedule(&trans->tasklet); return 0; } |