net: mvpp2: fix memory leak in mvpp2_rx
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 31 Jul 2020 08:38:32 +0000 (10:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:14:46 +0000 (15:14 -0700)
commitd6526926de7397a97308780911565e31a6b67b59
tree3bb276db22a00431c7e11696cd6891d43e10a6ae
parent71fed0bc8665969f4681fc5772e5df42bfcc472e
net: mvpp2: fix memory leak in mvpp2_rx

Release skb memory in mvpp2_rx() if mvpp2_rx_refill routine fails

Fixes: b5015854674b ("net: mvpp2: fix refilling BM pools in RX path")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c