patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-dev v1] crypto/qat: fix of qat build request session in mp
@ 2022-10-04 16:08 Kai Ji
  2022-10-07 14:21 ` Power, Ciara
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Ji @ 2022-10-04 16:08 UTC (permalink / raw)
  To: dev; +Cc: gakhil, Kai Ji, stable

This patch fix the session pointer passed in set_session()
when ctx has NULL build request pointer in multi-processes
scenario.

Fixes: fb3b9f492205 ("crypto/qat: rework burst data path")
Cc: stable@dpdk.org

Signed-off-by: Kai Ji <kai.ji@intel.com>
---
 drivers/crypto/qat/qat_sym.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c
index 54c3d59a51..fd2d9eed3b 100644
--- a/drivers/crypto/qat/qat_sym.c
+++ b/drivers/crypto/qat/qat_sym.c
@@ -85,7 +85,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,
 			if (unlikely(ctx->build_request[proc_type] == NULL)) {
 				int ret =
 				qat_sym_gen_dev_ops[dev_gen].set_session(
-					(void *)cdev, (void *)sess);
+					(void *)cdev, (void *)ctx);
 				if (ret < 0) {
 					op->status =
 						RTE_CRYPTO_OP_STATUS_INVALID_SESSION;
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-27  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 16:08 [dpdk-dev v1] crypto/qat: fix of qat build request session in mp Kai Ji
2022-10-07 14:21 ` Power, Ciara
2022-10-27  9:53   ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).