[PATCH] nand_bbt.c, kernel 2.6.28.7

From: Basterash, Tom
Date: Wed Mar 04 2009 - 16:48:55 EST


New to the Linux kernel development community here...

This is a patch for a bug I found in an older version of the kernel I'm
using on a project (2.6.10). (The defect still exists in the latest
version of the kernel 2.6.28.7, hence the reason for the post.) For
NAND chips with large block sizes (128K in our case) I was getting an
out of memory error when I attempted to store the bad block table in
flash. This patch fixes that error by allocating memory in the same way
it's done in another function in the file. Feedback desired: Does the
fix seem reasonable? If so, what else must be done to have it
incorporated into the source tree? Thx.
The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.

Attachment: nand_bbt.patch
Description: nand_bbt.patch

Attachment: README
Description: README