From: Toshiaki Makita <makita.toshi...@lab.ntt.co.jp>
Date: Wed, 15 Aug 2018 17:07:29 +0900

> David Ahern reported memory leak in veth.
 ...
> veth_rq allocated in veth_newlink() was not freed on dellink.
> 
> We need to free up them after veth_close() so that any packets will not
> reference the queues afterwards. Thus free them in veth_dev_free() in
> the same way as freeing stats structure (vstats).
> 
> Also move queues allocation to veth_dev_init() to be in line with stats
> allocation.
> 
> Fixes: 638264dc90227 ("veth: Support per queue XDP ring")
> Reported-by: David Ahern <dsah...@gmail.com>
> Signed-off-by: Toshiaki Makita <makita.toshi...@lab.ntt.co.jp>

Applied, thank you.

Reply via email to