numam-dpdk/lib/librte_security
Lukasz Wojciechowski e36b5a87d6 security: fix session counter
Fix session counter to be decreased in rte_security_session_destroy
only when session was successfully destroyed.

Formerly session counter was decreased prior session destroying
and returning session object to mempool. It remained decreased even
if session was not destroyed and mempool object released making counter
invalid.

Fixes: c261d1431b ("security: introduce security API and framework")
Cc: stable@dpdk.org

Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2020-04-19 17:15:14 +02:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_security_driver.h security: remove experimental tag 2018-11-18 22:31:30 +01:00
rte_security_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
rte_security.c security: fix session counter 2020-04-19 17:15:14 +02:00
rte_security.h security: fix return types in documentation 2020-04-19 17:15:14 +02:00