From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 488BDA0543 for ; Tue, 4 Oct 2022 18:08:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CCF1427F1; Tue, 4 Oct 2022 18:08:52 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 3CFEC40A79; Tue, 4 Oct 2022 18:08:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664899730; x=1696435730; h=from:to:cc:subject:date:message-id; bh=kNJf9tIK4vOjXjvmHbT/CyFr+9hAL8zNbDkrVxdWFWk=; b=jPzfC+h5ScFfrXQnPlNbCGUR+lJisUzwyEmTKkk0hzdOjawagepGzAld 6qEps+zNm19j22B5RN9sfgWVjBmVToJQ71JKeDQjarjHmAIUcGzk4G37x qaHr86jIMzJbMEBlZO2DdlndDEy7pRKqPDVPwLMO61tzOo5NjsZTviaKB wU1+EARqBNvUL08ek2aRTnnS2lQfFgYVNCZRWahJMuDAOVZeCxcJ3ZPS1 u6TK1AS/dWVSdMoc+xGUcmSWIiDS4irRt90MWRFaQdkpsAWBUWHFmZOy4 Hd1OiB6S5I3JMXycE0jVP15cXmWaM6ksi813daPYCbZODo6BtPE5r7b25 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="389241051" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="389241051" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2022 09:08:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="692539553" X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="692539553" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by fmsmga004.fm.intel.com with ESMTP; 04 Oct 2022 09:08:47 -0700 From: Kai Ji To: dev@dpdk.org Cc: gakhil@marvell.com, Kai Ji , stable@dpdk.org Subject: [dpdk-dev v1] crypto/qat: fix of qat build request session in mp Date: Wed, 5 Oct 2022 00:08:43 +0800 Message-Id: <20221004160843.64749-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 --- 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