[PATCH] UBI: Return -ENOMEM upon failing malloc

Artem Bityutskiy dedekind at infradead.org
Wed Dec 10 05:54:52 EST 2008


On Wed, 2008-12-10 at 10:42 +0100, Stefan Roese wrote:
> Return with correct error code (-ENOMEM) from ubi_attach_mtd_dev() upon
> failing malloc().
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> ---
>  drivers/mtd/ubi/build.c |   16 +++++++++++-----
>  1 files changed, 11 insertions(+), 5 deletions(-)

Thanks for the patch. I've improved it a little bit and pushed:
http://git.infradead.org/users/dedekind/ubi-2.6.git?a=commit;h=ad5942bad6addcf9697a74413b517d9724d803a4

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list