Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1229765imu; Wed, 16 Jan 2019 15:15:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6P3/e5ihaxZsIyUpw2RnKgv16V/eYQf//xz7OxB8l4m1LEsguWd386tO39At/ydYOfaJA/ X-Received: by 2002:a63:6103:: with SMTP id v3mr10867831pgb.75.1547680534557; Wed, 16 Jan 2019 15:15:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547680534; cv=none; d=google.com; s=arc-20160816; b=sYttT0fDSFs0oIBNesUfweo/KqyXmzMMVttM1MOyqh8BGjmpSg24Gj8145g7TguurG o5cEFF0Lhc4iWDCfkmSCrMiqorbpMmyxLBY3jY31Y1bXAspwl8hHXsSWZh7nLGRGLRio akBLOaPD4sqzjrKCbny3wTh0YZrZLoqZj4ZLm4kYqYbKuw/jZWAez2JbXShcs6G0PLyi gTD7D3wA9aFOeMZY4/ojl26nGlMxDp3AyC15caDHM2LNepHTGJsbmuJsHQWEr/qFE/Yo 7+bbBnlKVHC+F5wrVu2QaRzJiyzgxYkTUU0vPSxZlHggNsbdXlNFyYFGGVZwM5Qsk79s zYQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=JkeosAGE+IXsYPZQlkrjjSqYxeyY5maqt2rAXmWybPE=; b=szRZAD9nfSLPjIK2Ui2RAILwF1hZyBshHyQ23wqZFqV7s4SF5YnjejYOy/CU3lcNRU v/6RiQWLHWr/6uiV+7Wa2q68Sz4rRwgsDCsnNsP3w5R/bhEcE9JzPTjyszcxhb8AWM2c xXwxqv86I2i/0CdXoFbr6OdvXlXUP0JzvN3/ljwGv91hUm24R3EcaVBHDJp6fOF+Q1Q5 Vmh3skTeacbZw1W/3o/PhQ6g+PAqQbRznrqVKJ/qTukJVVaIEtFeW1XZwpgVP89RVNLh uGQoJBfCuCtaLmodUN0sUtpyXe3CaDjTc+IsumvKu+ifaheC8eG52z3+iupo3e3kiOU+ N9+g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si6986781pgk.312.2019.01.16.15.15.18; Wed, 16 Jan 2019 15:15:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405947AbfAPRVw (ORCPT + 99 others); Wed, 16 Jan 2019 12:21:52 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:41306 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405842AbfAPRVv (ORCPT ); Wed, 16 Jan 2019 12:21:51 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 58B4C14B56D28; Wed, 16 Jan 2019 09:21:48 -0800 (PST) Date: Wed, 16 Jan 2019 09:21:47 -0800 (PST) Message-Id: <20190116.092147.2222967221278304230.davem@davemloft.net> To: rppt@linux.ibm.com Cc: linux-mm@kvack.org, akpm@linux-foundation.org, catalin.marinas@arm.com, hch@lst.de, dennis@kernel.org, geert@linux-m68k.org, green.hu@gmail.com, gregkh@linuxfoundation.org, gxt@pku.edu.cn, guoren@kernel.org, heiko.carstens@de.ibm.com, msalter@redhat.com, mattst88@gmail.com, jcmvbkbc@gmail.com, mpe@ellerman.id.au, monstr@monstr.eu, paul.burton@mips.com, pmladek@suse.com, dalias@libc.org, richard@nod.at, robh+dt@kernel.org, linux@armlinux.org.uk, shorne@gmail.com, tony.luck@intel.com, vgupta@synopsys.com, ysato@users.sourceforge.jp, devicetree@vger.kernel.org, kasan-dev@googlegroups.com, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-usb@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, x86@kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH 15/21] sparc: add checks for the return value of memblock_alloc*() From: David Miller In-Reply-To: <1547646261-32535-16-git-send-email-rppt@linux.ibm.com> References: <1547646261-32535-1-git-send-email-rppt@linux.ibm.com> <1547646261-32535-16-git-send-email-rppt@linux.ibm.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 16 Jan 2019 09:21:50 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport Date: Wed, 16 Jan 2019 15:44:15 +0200 > Add panic() calls if memblock_alloc*() returns NULL. > > Most of the changes are simply addition of > > if(!ptr) > panic(); > > statements after the calls to memblock_alloc*() variants. > > Exceptions are pcpu_populate_pte() and kernel_map_range() that were > slightly refactored to accommodate the change. > > Signed-off-by: Mike Rapoport Acked-by: David S. Miller