[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YmwB83u68uPKuU0a@shell.armlinux.org.uk>
Date: Fri, 29 Apr 2022 16:19:15 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: xkernel.wang@...mail.com
Cc: andrew@...n.ch, gregory.clement@...tlin.com,
sebastian.hesselbarth@...il.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ARM: mvebu: check the validation of memory allocation
On Fri, Mar 25, 2022 at 04:55:18PM +0800, xkernel.wang@...mail.com wrote:
> From: Xiaoke Wang <xkernel.wang@...mail.com>
>
> kzalloc() and kstrdup() are memory allocation functions which can return
> NULL when some internal memory errors happen. So it is better to check
> the return value of them to prevent potential wrong memory access or
> memory leak.
Are these failures silent, or will they be reported in the kernel log to
make their failure obvious to those who debug the kernel?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists