Re: [PATCH] net: mvneta: Fix memory use after free.

2015-11-09 Thread David Miller
From: Justin Maggard Date: Mon, 9 Nov 2015 17:21:05 -0800 > After changing an interface's MTU, then bringing the interface down and > back up again, I immediately saw tons of kernel messages like below. > The reason for this bad behavior is mvneta_rxq_drop_pkts(), which calls > dma_unmap_single(

[PATCH] net: mvneta: Fix memory use after free.

2015-11-09 Thread Justin Maggard
After changing an interface's MTU, then bringing the interface down and back up again, I immediately saw tons of kernel messages like below. The reason for this bad behavior is mvneta_rxq_drop_pkts(), which calls dma_unmap_single() on already-freed memory. So we need to switch the order of those t