From: Andy Moreton Date: Tue, 4 Apr 2017 12:13:25 +0000 (+0100) Subject: net/sfc/base: fix failure path in EF10 Tx queue PIO enable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3798610de78aba25e315650ef0a12cbea161ec94;p=dpdk.git net/sfc/base: fix failure path in EF10 Tx queue PIO enable Coverity issue: 1387551 Fixes: e7cd430c864f ("net/sfc/base: import SFN7xxx family support") Cc: stable@dpdk.org Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/ef10_tx.c b/drivers/net/sfc/base/ef10_tx.c index 0f48a6c1f0..6ad11dd534 100644 --- a/drivers/net/sfc/base/ef10_tx.c +++ b/drivers/net/sfc/base/ef10_tx.c @@ -282,9 +282,9 @@ ef10_tx_qpio_enable( fail3: EFSYS_PROBE(fail3); ef10_nic_pio_free(enp, etp->et_pio_bufnum, etp->et_pio_blknum); - etp->et_pio_size = 0; fail2: EFSYS_PROBE(fail2); + etp->et_pio_size = 0; fail1: EFSYS_PROBE1(fail1, efx_rc_t, rc);