Re: [PATCH] ARM: mvebu: check the validation of memory allocation
From: xkernel.wang
Date: Sun May 01 2022 - 03:02:15 EST
On Friday, April 29, 2022 11:19 PM +0800, linux@xxxxxxxxxxxxxxx wrote:
> Are these failures silent, or will they be reported in the kernel log to
> make their failure obvious to those who debug the kernel?
According to chapter 14 of the coding style document:
"These generic allocation functions all emit a stack dump on failure when used
without __GFP_NOWARN so there is no use in emitting an additional failure
message when NULL is returned."
I think that these failures are not silent since __GFP_NOWARN is not
enabled.
Regards,
Xiaoke Wang