[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7hy35ag7pp.fsf@baylibre.com>
Date: Tue, 19 Mar 2019 09:16:50 -0700
From: Kevin Hilman <khilman@...libre.com>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
linux-amlogic@...ts.infradead.org, linux-mtd@...ts.infradead.org,
bbrezillon@...nel.org, miquel.raynal@...tlin.com
Cc: liang.yang@...ogic.com, richard@....at, jianxin.pan@...ogic.com,
linux-kernel@...r.kernel.org,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Subject: Re: [PATCH v2 1/2] mtd: rawnand: meson: add missing ENOMEM check in meson_nfc_read_buf()
Martin Blumenstingl <martin.blumenstingl@...glemail.com> writes:
> kzalloc() can return NULL if memory could not be allocated. Check the
> return value of the kzalloc() call in meson_nfc_read_buf() to make it
> consistent with other memory allocations within the meson_nand driver.
>
> Fixes: 8fae856c53500a ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
> Acked-by: Liang Yang <liang.yang@...ogic.com>
Reviewed-by: Kevin Hilman <khilman@...libre.com>
Powered by blists - more mailing lists