From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00936CD342C for ; Wed, 6 May 2026 15:52:23 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E7354065E; Wed, 6 May 2026 17:52:23 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 5B45F402D1 for ; Wed, 6 May 2026 17:52:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778082741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4jF9+2vZhbdk7O2lArHSEYRsSLOIs2nQHR2wZOIaBYY=; b=Scc0r9GOH0G9oLzn8tFRaH4Bl61AAQEvjdeUrirSkhvDJFdMHMGm5WqV1LX7joYmY1R/6l 0e5qjgdtcWMKs0gUKxubMftLOcoe9EvUsl226bDKxo/w7h42Tsmgt88zBJTQekw7h+M6U+ hlTQUFTtHgQR4gPEZTDo2O1SP9yjTsA= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-CvdxL5AaPIeBzML4lNF_TQ-1; Wed, 06 May 2026 11:52:17 -0400 X-MC-Unique: CvdxL5AaPIeBzML4lNF_TQ-1 X-Mimecast-MFC-AGG-ID: CvdxL5AaPIeBzML4lNF_TQ_1778082735 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B765B19560B2; Wed, 6 May 2026 15:52:15 +0000 (UTC) Received: from dmarchan.lan (unknown [10.44.32.242]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B259B1953947; Wed, 6 May 2026 15:52:13 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, stephen@networkplumber.org, bruce.richardson@intel.com, Anoob Joseph Subject: [PATCH v2 02/23] crypto/octeontx: remove check on driver in remove Date: Wed, 6 May 2026 17:51:34 +0200 Message-ID: <20260506155201.2709810-3-david.marchand@redhat.com> In-Reply-To: <20260506155201.2709810-1-david.marchand@redhat.com> References: <20260429114503.932575-1-david.marchand@redhat.com> <20260506155201.2709810-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: k60XFy9XjOZX20RsGaEgWw_EC0b5R1x2PXOfQPHDeqE_1778082735 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The driver reference in the bus-specific device cannot be NULL since calling the .remove is done after dereferencing this pointer. Signed-off-by: David Marchand Acked-by: Anoob Joseph --- drivers/crypto/octeontx/otx_cryptodev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c index b5ab937c3a..b2f6f53ee3 100644 --- a/drivers/crypto/octeontx/otx_cryptodev.c +++ b/drivers/crypto/octeontx/otx_cryptodev.c @@ -87,9 +87,6 @@ otx_cpt_pci_remove(struct rte_pci_device *pci_dev) if (cryptodev == NULL) return -ENODEV; - if (pci_dev->driver == NULL) - return -ENODEV; - dev_priv = cryptodev->data->dev_private; /* free crypto device */ -- 2.53.0