[PATCH][MTD][OneNAND]Update oobretlen in onenand_write_ops_nolock

Artem Bityutskiy dedekind at infradead.org
Tue Jun 17 01:41:32 EDT 2008


On Mon, 2008-06-16 at 23:14 +0530, rohit h wrote:
> We are missing updating the oobretlen return parameter
> in onenand_write_ops_nolock. This patch fixes it.
> Regards,
> Rohit H
> Signed-off-by: Rohit H <hrohit85 at gmail.com>
> ---
> --- a/drivers/mtd/onenand/onenand_base.c	2008-05-30 13:04:59.000000000 +0530
> +++ b/drivers/mtd/onenand/onenand_base.c	2008-06-16 22:27:02.000000000 +0530
> @@ -1554,6 +1554,7 @@ static int onenand_write_ops_nolock(stru
>  	}
> 
>  	ops->retlen = written;
> +	ops->oobretlen = oobwritten;
> 
>  	return ret;
>  }

Looks OK.
Acked-by: Artem Bityutskiy <dedekind at infradead.org>
CC: Kyungmin Park <kmpark at infradead.org>

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




More information about the linux-mtd mailing list