Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4297932ybl; Mon, 13 Jan 2020 11:12:38 -0800 (PST) X-Google-Smtp-Source: APXvYqze2FCa4zgZIDhQMjm52TlylYoEhsPRTPp0MKHuq0RBnIbXtm5D1aXAlsZvI9O+C2FfNBFk X-Received: by 2002:a05:6830:1f19:: with SMTP id u25mr14722693otg.170.1578942758196; Mon, 13 Jan 2020 11:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578942758; cv=none; d=google.com; s=arc-20160816; b=NMTLbiYW0LIe3Cn1XnLQrffJf6t9dB1ZJ79KxtRWyBhGBg+0C5gQKBkk4mesHMBwQ6 GoJn57dF+HnJXggYdxTl2EfYYljgbZa+5PgBhlF7Lwy0PZXF7QzdqoDb++kurJWkT0Fl UbYfl5wELxvDCI4Fuj3w0rM5sB27CEHJeV1f3GrbRS1p8dtppuI69e8yABD9vedQssu6 Wlsdsd4wsE5jau3CEEGnKgC88lEs9KsjtaBXxqaewF96amUjcWZDulXcOUbz7kvVd75e vgbtKs2mlG5ff2Jez0Tp0cH1VkjR3ycxrP/QpURklW7pcIKyJYeQkljrKKLVbyJlG/MA uXHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:references:subject:cc:cc:cc :to:from:date:message-id; bh=yx6apWvkE7do4qCaKbCQiOQiIYnQT2mV1VkM+epSUiQ=; b=hgakqoMUCc0rURGgTv8M8ltCoTU/tPJnyw53J0Z4WMy0Mjd1Q6aDIoqFEIoNpCnz8j rGOrU7DlvGoL3r9lbT7ryNOSA6x7AJ85RNRrPw8QPL6IjLCzIwnQg2Me3BKtmLFTqBDs cP3PVLsjTcWj54YeX9h8KpZ90GnvfduSg6WBPvYtFegDvJEadhyk/Tr4t8qidRFT0g4V ycH/BFXD4QNGIhZiL4z0PxJp8pfkXE28J6RFF3p/H1fnhfUXe3BD8gczrklU3hBPBEvX WT8qIgyM1G7B+Swq0BVb+zBrcVrNomvBIiJBm9q4puTX4T4wXdI8biPqJlLTemQyt/oF NaFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a29si7683275otd.268.2020.01.13.11.12.26; Mon, 13 Jan 2020 11:12:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729008AbgAMTLI (ORCPT + 99 others); Mon, 13 Jan 2020 14:11:08 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43504 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729307AbgAMTKw (ORCPT ); Mon, 13 Jan 2020 14:10:52 -0500 Received: by mail-pg1-f193.google.com with SMTP id k197so5143601pga.10; Mon, 13 Jan 2020 11:10:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:cc:cc:subject :references:in-reply-to; bh=yx6apWvkE7do4qCaKbCQiOQiIYnQT2mV1VkM+epSUiQ=; b=tShKaH5ZEx2zQfNn9EzMVEIhjPg9HM3+1cwbL1O4edUAJAAmXhginLCOX+mOvlzw+L giVKFRy5T2/0hHtiLCVWWdryTD0ciwaDZGtWQE5qpPsz0l1JDljJoP7MECFI9HXSfc/x snZjC3nLgq89Aqlf+H4ojpCbgnmgilxPYcxGbtv6AOcWvD7ZA7onzDguuD83pMjmOH2U AgFtygAgPWWZQnyh0sP47X6lzYl1m0ZF1y4kRxQPwNgt2ZfVtOGfxufp6WimjUBDTV6H pDoIHgqpJls5LF61S9KqRPaWCNA1nKG2AW4Wms/Pv6jtp+WJhP1Cmi48n9XXAO7Vdu10 nJXw== X-Gm-Message-State: APjAAAV8yAkkt2Pw0xgi3YZcM6QLgjWu9OqsXkz/6xEqJYZU5PtthCe3 uaEgvM3+ap2e6rCa1qnDHlunVEqxVnv6/Q== X-Received: by 2002:a62:1d52:: with SMTP id d79mr20975261pfd.144.1578942651214; Mon, 13 Jan 2020 11:10:51 -0800 (PST) Received: from localhost (MIPS-TECHNO.ear1.SanJose1.Level3.net. [4.15.122.74]) by smtp.gmail.com with ESMTPSA id q11sm15000623pff.111.2020.01.13.11.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 11:10:50 -0800 (PST) Message-ID: <5e1cc0ba.1c69fb81.41d49.31bf@mx.google.com> Date: Mon, 13 Jan 2020 11:10:50 -0800 From: Paul Burton To: Tiezhu Yang CC: Paul Burton , Ralf Baechle , Huacai Chen , Jiaxun Yang CC: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org CC: linux-mips@vger.kernel.org Subject: Re: [PATCH] MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() References: <1578619842-926-1-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1578619842-926-1-git-send-email-yangtiezhu@loongson.cn> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Tiezhu Yang wrote: > If kzalloc fails, it should return -ENOMEM, otherwise may trigger a NULL > pointer dereference. Applied to mips-next. > commit 72d052e28d1d > https://git.kernel.org/mips/c/72d052e28d1d > > Fixes: 3adeb2566b9b ("MIPS: Loongson: Improve LEFI firmware interface") > Signed-off-by: Tiezhu Yang > Signed-off-by: Paul Burton Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paulburton@kernel.org to report it. ]