[PATCH 2/7] pstore/ram: Fix error handling during przs allocation
Kees Cook
keescook at chromium.org
Tue Jun 19 18:40:43 UTC 2012
On Mon, Jun 18, 2012 at 7:15 PM, Anton Vorontsov
<anton.vorontsov at linaro.org> wrote:
> persistent_ram_new() returns ERR_PTR() value on errors, so during
> freeing of the przs we should check for both NULL and IS_ERR() entries,
> otherwise bad things will happen.
>
> Signed-off-by: Anton Vorontsov <anton.vorontsov at linaro.org>
Acked-by: Kees Cook <keescook at chromium.org>
--
Kees Cook
Chrome OS Security
More information about the devel
mailing list