Message ID | 7dce2d53-9066-e26d-9e4f-e923226611d8@web.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 F112BC6FD18 for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Mar 2023 17:18:18 +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:References:Cc:To:From: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hGM2J+xN+4BGwmGE7Bkhz8OTD27T+fQY67aP4+Wnu2o=; b=zr+i6bV/rbUQCD cy5LuDgpgXDAT7CcJAkze4obwg5SYCtslRXYO/agtCcMw0oCseklyVFxWEV5UeoM0JkSyUCdAhw4b EDkiX/Sftxgf8W5b7pCgsEaC2QKL1NLpyMISwnt7G4D6JXaftWd/RJdEsetqCz+dyP/impd6ULd63 r6w8SBI/LfYql5dybrBxxTs/s6QQA+VGJLrASAyEVmc52hOYyxcjn1U+LrOL5hbse3wQHhIcEOGNo OQJYN7LtxWHEbBSLo8xjFY8S7jJnjEQoI3hNkkYu+gH7tIofxxar9S7d7s38vXDH15xphjto8Gw1g oS9KJ/Wc9wszBN9wpevw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phCwx-00FHbi-2h; Tue, 28 Mar 2023 17:17:35 +0000 Received: from mout.web.de ([212.227.15.3]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phCwu-00FHaT-24 for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 17:17:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1680023850; i=markus.elfring@web.de; bh=w/2uNMl1KX2jgPywO6+eEF6wu8T/V/mHXVOfzRQZtS4=; h=X-UI-Sender-Class:Date:Subject:From:To:Cc:References:In-Reply-To; b=Ym4W9zoH3MhB5/DleBdWfBI7+aWajz1OGqsFRNNI4sORnYGRt5kLsChTgUE0hSh6o oPetZeiEVllzIK2IZbXhtUJN925zhrIPQBrOSKOS0TAZRzSLBxuYTnAb0WlIaNFVnl g0etg8tty/OYxxO4vCgmqK2yq6bftIzrYXwoVEcrwWvxwQzz4XysH5fhEJGnhrOmKD v2zslNc6y3tJ2by8+fV/P+H92domyGUeTF5w6V9vT8F5teo1utZVb1uPn9xqlaA4Yx i84B5246hCLgcQ5mEGsV4gHmbQr5yZeRlrZ8t10t90x2daNkxcMJbHbG+IYL2KZdUw HO6W0PY0MAVuw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.88.83]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MYtwy-1puSVO33Qm-00Unpv; Tue, 28 Mar 2023 19:17:30 +0200 Message-ID: <7dce2d53-9066-e26d-9e4f-e923226611d8@web.de> Date: Tue, 28 Mar 2023 19:17:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: [PATCH 2/2] ARM: Return directly after a failed kmalloc() in init_atags_procfs() Content-Language: en-GB From: Markus Elfring <Markus.Elfring@web.de> To: kernel-janitors@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King <linux@armlinux.org.uk> Cc: cocci@inria.fr, LKML <linux-kernel@vger.kernel.org> References: <6cbcf640-55e5-2f11-4a09-716fe681c0d2@web.de> <562a6f99-3f8e-9a77-e519-b668e24dced2@web.de> In-Reply-To: <562a6f99-3f8e-9a77-e519-b668e24dced2@web.de> X-Provags-ID: V03:K1:avmJgY1SCLe4YYARC1gqJFm0Whcsi/9f5JD+tR9ODFN8Z0nPceG 65+dUiRGvXkxisrR0EwmXvTk+myGNST+Ntj3RD7ofu3QKo/+C1EjpEcZarZlYIqbnmVmP5G 5oltGk209IBnqpM6S1w8+DZ/AGA53zKdbyxlETUL0W3+nOTiqipfg3++fXW9eogd0eUSnaw 0EoVBHx6+WuoL/8neDB4Q== UI-OutboundReport: notjunk:1;M01:P0:66mQZuA/PL8=;dZyn+kW+b6qTnrHuUhurfpacp1n UNjIGhmcSJKlNnrjePY61vvwywoUkMSemcHg7//Ck8xgG6ii2bGEqe024f33oFGfh9wYEEEsU d16jRZJKIcQsMQgy1geKk0SknJpl9Id8cqQXR5zmytnqaoPRqKr6+nq11bqe9xFtVOYL7knLc Q0gHbwtqbrW3JtWDPHom0+FWNs6hskuPyu2czXSgLCR3NkjAcZFreanFJQUfSWUTEM/gFyhjn Dttb+5jjEmhpaKKkzs+EnORON6Krk2joUw6jh+LIBxRC+LJxFcTP0ba6qMCTo97t9XodlBbST Pu9IRZYh4ZSt7Z99zKCL86WpRHYCq0xE9lodcxH+TIyu1+vzmwQPHUoCtLVKe949SEpif9C8R p8eslzwm3Tcz+1c50ENQvivnO60hybJ/mi5XW7nm2XtwqVYSW41oP6mtNmP6yyKUpEivthrT6 mraS7SpSSiEiYcDlsT0rHkxTyakV5Oj846ahlLJLdF/1StuJRXi6n5pYfn6x6Uf4zypD0YzrP FCBG239MRk/3PkU/QaZ185oEUP842uo28F9euGsoQgI2IgWoK0sVBWXYdk/6WkfDIjMhtf3Mx a6Sq1BVp1wOWrO3vEYyjm/qRXUu2JMQK9+4guYnJrxe3UcfTfnZ681lvghwgcRsvrCrBqvMjJ Z6i3gQjvY8fvdtPf7IaNcmgsJqzwHhVxxXlw1QExgO/8tT1lTZYxnFdJcJE7EwACdeALqy83X zgBvNDzqyJAY1TTSDJ8OnTng2f0o4cQoDrr5QfxKFaBlr+aMCpTkJ14R+6aYjvaG0nvsuUv0q 0jTo+gptpvHhyMCxsmPck4fD4FxxlQBtBinbzqrQDdS1qgaudvnwdOvjsMecin5ntcl0V/WhX wk2Vz7evYQs9tRCB07IOLWPZAd6xHlinxdr6ywyeBjLTRdM0kxW/WUvyT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_101732_964428_944EEC03 X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ARM: Adjustments for init_atags_procfs()
|
expand
|
diff --git a/arch/arm/kernel/atags_proc.c b/arch/arm/kernel/atags_proc.c index 2f08ab08e68f..1c7441f3af85 100644 --- a/arch/arm/kernel/atags_proc.c +++ b/arch/arm/kernel/atags_proc.c @@ -56,7 +56,7 @@ static int __init init_atags_procfs(void) b = kmalloc(sizeof(*b) + size, GFP_KERNEL); if (!b) - goto nomem; + return -ENOMEM; b->size = size; memcpy(b->data, atags_copy, size);
Date: Tue, 28 Mar 2023 18:56:31 +0200 Return directly after a call of the function “kmalloc” failed at the beginning. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- arch/arm/kernel/atags_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.40.0