Re: [PATCH net] team: Fix double free in error path

2018-03-08 Thread David Miller
From: Arkadi Sharshevsky Date: Thu, 8 Mar 2018 12:42:10 +0200 > The __send_and_alloc_skb() receives a skb ptr as a parameter but in > case it fails the skb is not valid: > - Send failed and released the skb internally. > - Allocation failed. > > The current code tries to release the skb in case

[PATCH net] team: Fix double free in error path

2018-03-08 Thread Arkadi Sharshevsky
The __send_and_alloc_skb() receives a skb ptr as a parameter but in case it fails the skb is not valid: - Send failed and released the skb internally. - Allocation failed. The current code tries to release the skb in case of failure which causes redundant freeing. Fixes: 9b00cf2d1024 ("team: impl