summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorRicard Wanderlöf <ricard.wanderlof@axis.com>2006-10-23 11:33:34 +0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-26 14:17:49 +0400
commitff0dab64b4e9ce3a073365342297e76ddaae9697 (patch)
treedd4fd58aa67ea594a3a1c5a52f3faa9797800f47 /include/linux/mtd
parent784f4d5e66ac1d962091e08fe5a4b238ed8c793d (diff)
downloadlinux-ff0dab64b4e9ce3a073365342297e76ddaae9697.tar.xz
[MTD] NAND: Fix nand_default_mark_blockbad() when flash-based BBT disabled
When a flash-based BBT is not used, nand_default_mark_blockbad() is supposed to mark the block bad in the oob. However, it sets the wrong length variable so that no bad block marker is in fact written. This patch attempts to rectify that. (As note, it seems to be that logically, it shouldn't be necessary to set both length variables, as one appears to be for the main buffer, and one for the oob buffer, but this is how it is done in several places, including the code for the mtd character device MEMWRITEOOB and MEMREADOOB ioctls. I'm not sure if this is a temporary solution during some rework of the mtd infrastructure, or whether there is a deeper thought here.) Signed-off-by: Ricard Wanderlöf <ricardw@axis.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions