net/sfc: fix double-free in EF10 ESSB Rx queue purge
authorAndrew Rybchenko <arybchenko@solarflare.com>
Fri, 29 Jun 2018 15:41:06 +0000 (16:41 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Jul 2018 19:03:02 +0000 (21:03 +0200)
commit20680dae4602d4f71e860c0f7532b1c369aa89b3
tree226d7e384aac4b8fb5df9132976c1cddfd5a270c
parentaeeb5571eeb213ddf9b42a37b620acfa39c1e4bf
net/sfc: fix double-free in EF10 ESSB Rx queue purge

Number of buffers left in completed descriptor may be 0. If so,
all buffers of the descriptor are freed once again.

Fixes: 390f9b8d82c9 ("net/sfc: support equal stride super-buffer Rx mode")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/net/sfc/sfc_ef10_essb_rx.c