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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B214C00A5A for ; Thu, 19 Jan 2023 13:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wRprHXGjgOmLwf/87+OO0ze8qWmQIEhlKLU6T3vIkcY=; b=Fx3yXBKhZPveVU UnaQUFpfrIH9ByvG0UbaXtPyuIeHgPmtUMhLFZdIO0fcNejnfeXWbts+C1pGSCt6Rzcja0vEJs+da yhxgOKGshRz9yg2bRJyZqWjsAhoeeLV0hvYqQ4Z07VerrgDkknR0T6zlEWbYqIqUEmZ0a96hbhNQy YA2Td4Jk0ZJT2TmPmaIrhr6A73OIHQtF/ypsRbQz7CFlbIRW6BWehtqEGdumqfkGuDaRHaWXwrCUt 0ZHd2YJfVJMLyn8ftecG0rTv4SkvjO3k/DQ+jrpIdd0LYjRTJ+rC8wvNNlvpDZBKqWmb6oZaHW+4s ReUheN3Yt6OVXDhwLdAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV7w-00599v-7X; Thu, 19 Jan 2023 13:38:48 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV7s-00596w-A4 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 13:38:45 +0000 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-Disposition: inline In-Reply-To: <202301191051184033370@zte.com.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_053844_389876_22C2A8E6 X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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