]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: cleanup the nand_do_write_ops
authorMaxim Levitsky <maximlevitsky@gmail.com>
Mon, 22 Feb 2010 18:39:36 +0000 (20:39 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 17:47:47 +0000 (17:47 +0000)
commit7fa98ced551c15a83d0080ad233a854d5cac87b4
tree33048893319b835e1eeadbd89b9bf647d13cc81c
parentb8a2d33cfd69b48b429130afa9fb2365c89ec13d
mtd: nand: cleanup the nand_do_write_ops

nand_do_write_ops was broken in regard to writing several pages, each
with its own oob.

Although nand_do_write_ops intends to allow such mode, it fails do do so
Probably this was never tested.

Also add missing checks for attempts to write at illegal offsets.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c