net/ixgbe: prevent ic session leak on failure
authorVipin Varghese <vipin.varghese@intel.com>
Fri, 12 Oct 2018 09:53:46 +0000 (15:23 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit93e11beebc49ad5ab7ea3d146da911caa8064bd1
tree030d392e3f4a63523459c2707fce7d47f2dcad40
parent8fae42404cab6c9ad7e7683a1bebf891ba1192ac
net/ixgbe: prevent ic session leak on failure

For function ixgbe_crypto_create_session, fetches ic_session from the
mempool. But on failure scenarios, the object is not released back to
mempool. Using rte_mempool_put the ic_session is put back to mempool.

Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/net/ixgbe/ixgbe_ipsec.c