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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BBBEC00A5A for ; Thu, 19 Jan 2023 13:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbjASNiq (ORCPT ); Thu, 19 Jan 2023 08:38:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbjASNin (ORCPT ); Thu, 19 Jan 2023 08:38:43 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D9D4995A for ; Thu, 19 Jan 2023 05:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=y5fbk5t5RbbBW2wMMEI1+c7b4B2mhMKOEQ9pvqCu6WU=; b=etdaKlvaRJ10miQbFZ8gEKysYa qYQAupJC36Hu0rGVD9UI0xIBAE1h/Djmy+KXTIWai/xMwXvmSF21b9d/TTv4/Je4Tb6WPK2gQzwde IPj0VDB0reWBhMxZOjuNSNi7YP/WwRXDp0rKcqH6QPIVz4JK0V0VOeyYqLz97eN2ydA4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pIV7g-002Yn5-0c; Thu, 19 Jan 2023 14:38:32 +0100 Date: Thu, 19 Jan 2023 14:38:32 +0100 From: Andrew Lunn To: ye.xingchen@zte.com.cn Cc: gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: mvebu: potential dereference of null pointer Message-ID: References: <202301191051184033370@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202301191051184033370@zte.com.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 19, 2023 at 10:51:18AM +0800, ye.xingchen@zte.com.cn wrote: > From: Minghao Chi > > The return value of kzalloc() needs to be checked. > To avoid use of null pointer in case of the failure of alloc. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi > Signed-off-by: ye xingchen Reviewed-by: Andrew Lunn Andrew