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 1B5B3A0544; Mon, 10 Oct 2022 17:48:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2F40427F6; Mon, 10 Oct 2022 17:48:54 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 710D44021E for ; Mon, 10 Oct 2022 17:48:53 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 297C85C018D; Mon, 10 Oct 2022 11:48:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 10 Oct 2022 11:48:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665416933; x= 1665503333; bh=z14Tl7loPQeXnmFOkg/AuC/O3snYSpC2zIa6RbTVWeE=; b=d egKp3S7Q/1XNlNycYb2eAN7U5JGG8Fqoy6kUyX/nX5/13B1z3ft9vbmH2q47CFyy exRc/Up57+qxb7xxjhHwQGZzDm14Fm2KqC9v3fVSHkQuOeG9+Gf2eOUcc0Lxl4cb MMJYnp7jVFPwDrlKUSERps3fz1UZi8BMNVXS+66UYqG8gAsg/fzDuxEper6R6Ez/ 1nZc1irCencgLMz95fN57UKVj9H4hUpO/IKFbPEsnDnajkgfjBTgS5MOTLn/CzmG 7RKfiEvQi27aqlkVw5Z54tTWTjaSkPU/LFf8NIVeTFfpEcT4T1ekH72ZS6iCHFtw +8oFfgPcOB9RWvoM7BPwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665416933; x= 1665503333; bh=z14Tl7loPQeXnmFOkg/AuC/O3snYSpC2zIa6RbTVWeE=; b=k XVBp7ROZAaLdIaNEzankDunCQGzLT+tyG6IEVeCLIqXsCRZadiuDdUgC3Zb0omWE RjZpqitIksoEdhSZ2Rx4wcLq0qgcWOdN0n8i93VsvBvkV7UKuoMQ9Azr19zGHq9w 8s4RZG5PX3RNxN/7s9cIGXoAmOkV24gpl6cRTg2HIPQdY8FMMnHZ8lycgPzNGYjo wp7rrWByGLpvlHlqCXVV0xaSk4nUskAaqJrNF5bmjE1qWedAsFxoBmI6HEOkWUvA zre0lP95i0bG4HpYrx7gems1ILR7KFp4H6Ab3TFKZVs9GoP/DHSm1SnHN23yk/+C raCcO4dCmY0FeLTO2JH8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejgedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Oct 2022 11:48:52 -0400 (EDT) From: Thomas Monjalon To: 835703180@qq.com Cc: dev@dpdk.org, Bruce Richardson Subject: Re: [PATCH V2] raw/ioat: Check for the NULL pointer after calling malloc Date: Mon, 10 Oct 2022 17:48:51 +0200 Message-ID: <3161652.0WQXIW03uk@thomas> In-Reply-To: References: 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 06/07/2022 11:07, Bruce Richardson: > On Wed, Jul 06, 2022 at 02:55:48PM +0800, 835703180@qq.com wrote: > > From: Shiqi Liu <835703180@qq.com> > > > > As the possible failure of the malloc(), the not_checked and > > checked could be NULL pointer. > > Therefore, it should be better to check it in order to avoid > > the dereference of the NULL pointer. > > > > Fixes: b7aaf417f93 ("raw/ioat: add bus driver for device scanning automatically") > > Signed-off-by: Shiqi Liu <835703180@qq.com> > > --- > Acked-by: Bruce Richardson Applied, thanks.