mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[IPSEC]: Fix double free on skb on async output
When the output transform returns EINPROGRESS due to async operation we'll free the skb the straight away as if it were an error. This patch fixes that so that the skb is freed when the async operation completes. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
15ca36fb99
commit
fcb8c156c8
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
|
|||
spin_unlock_bh(&x->lock);
|
||||
|
||||
err = x->type->output(x, skb);
|
||||
if (err == -EINPROGRESS)
|
||||
goto out_exit;
|
||||
|
||||
resume:
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue