Messages in this thread | | | Date | Tue, 19 Jun 2012 11:40:43 -0700 | Subject | Re: [PATCH 2/7] pstore/ram: Fix error handling during przs allocation | From | Kees Cook <> |
| |
On Mon, Jun 18, 2012 at 7:15 PM, Anton Vorontsov <anton.vorontsov@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@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
-- Kees Cook Chrome OS Security
| |