[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20221003193238.748B8C433D6@smtp.kernel.org>
Date: Mon, 03 Oct 2022 12:32:36 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: mturquette@...libre.com, xkernel.wang@...mail.com
Cc: linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
Xiaoke Wang <xkernel.wang@...mail.com>
Subject: Re: [PATCH v2] clk: pxa: add a check for the return value of kzalloc()
Quoting xkernel.wang@...mail.com (2022-04-07 02:33:49)
> From: Xiaoke Wang <xkernel.wang@...mail.com>
>
> kzalloc() is a memory allocation function which can return NULL when
> some internal memory errors happen. So it is better to check it to
> prevent potential wrong memory access.
>
> Signed-off-by: Xiaoke Wang <xkernel.wang@...mail.com>
> ---
Applied to clk-next
Powered by blists - more mailing lists