net/sfc/base: fix failure path in EF10 Tx queue PIO enable
authorAndy Moreton <amoreton@solarflare.com>
Tue, 4 Apr 2017 12:13:25 +0000 (13:13 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:04 +0000 (19:03 +0200)
Coverity issue: 1387551
Fixes: e7cd430c864f ("net/sfc/base: import SFN7xxx family support")
Cc: stable@dpdk.org
Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_tx.c

index 0f48a6c..6ad11dd 100644 (file)
@@ -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);