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 16301A0C4B; Mon, 22 Nov 2021 17:01:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0D864014E; Mon, 22 Nov 2021 17:01:28 +0100 (CET) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by mails.dpdk.org (Postfix) with ESMTP id ADBF94003C for ; Mon, 22 Nov 2021 17:01:26 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B21923201628; Mon, 22 Nov 2021 11:01:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 22 Nov 2021 11:01:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= 1cqWWWIH3F7xYRdpjJCZctVupSPXR9bqpPiT361HpS4=; b=RzmZRNOYSyBy84jJ gicpWTOkm1Wf5/V9GQ1MApConjGiqpjTH3oxWafloFW1gcNgSAz7M06ACifWOktT F0k/urlk+JiiIFN+BAvgSV2bhpl1Ser9wA/HqjsNKMHtcr9My9Np6Ae03MSE4Pmu 4aril5BM4aDGe5b3kM9IWCJbeyLBsx1Er3q+WlceOk9COPnBFymLXMd/i3avqAZ7 x7pAHhMfj0zqjPRm+vCgXFTLW6KAWtUov4tvOO4ET+sP4kohdssWCCk+RZi4pmKU bwQqPKg4wGzJmjctQ+74RCRVV6W62qcbACT4nXTddrYtpxyDt/1wFsIjhWuAGsXj WD4QPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1cqWWWIH3F7xYRdpjJCZctVupSPXR9bqpPiT361Hp S4=; b=jhkW93xZOT2ajD5PzmvqWJX6qu4td2MXbRwfHUsk2KtJy6Og3weiegkUL 68AvUq/9VrlLvb61DqDVCL46tMnrbH1UuUUZopX8Vh2aLyfk7CioZ0/gOICRDkIH 7Ya7FuWqScjEffG6Jf7PmXQPElpdeAOjfRecOyZY5V4f27qp7Epn7cqpaiYwNUC2 exe0JJqmVsTYPIfdFg9udfNb5CohDcrzc13/M1An1OgmR7lRIfCxL/Srp2VgVfqg Y3fM3ZncYjC1F2hR1pz3ni9uud+9gWnhEckTZ2fTZ3gGkG8zjjZ0YxQj6iaqLUop LOWFa6ZYLIX64ehe3s848OnPX8ePw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeeggdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Nov 2021 11:01:24 -0500 (EST) From: Thomas Monjalon To: Elena Agostini Cc: dev@dpdk.org Subject: Re: [PATCH v5] gpudev: manage NULL pointer Date: Mon, 22 Nov 2021 17:01:22 +0100 Message-ID: <1860796.9dADgICV5h@thomas> In-Reply-To: <20211122235548.22344-1-eagostini@nvidia.com> References: <20211118192802.23955-1-eagostini@nvidia.com> <20211122235548.22344-1-eagostini@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 23/11/2021 00:55, eagostini@nvidia.com: > From: Elena Agostini > > gpudev free and unregister functions return > gracefully if input pointer is NULL because > API doc was indicating NULL as a no-op > accepted value. > > cuda driver checks are removed because > redundant with the checks added > in gpudev library. You didn't remove the check in cuda_mem_register.