Re: [patch] pstore: d_alloc_name() doesn't return an ERR_PTR

From: Kees Cook
Date: Wed Aug 14 2013 - 10:25:12 EST


On Wed, Aug 14, 2013 at 4:52 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> d_alloc_name() returns NULL on error. Also I changed the error code
> from -ENOSPC to -ENOMEM to reflect that we were short on RAM not disk
> space.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Thanks for the catch!

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/