Message ID | CACQ1gAgxnrLR-NDkiw=QUZ9r6JO30AVwX6MOYX4vV9WXoBaBiA@mail.gmail.com |
---|---|
State | New, archived |
Headers | show |
On Mon, 2012-09-03 at 12:57 +0200, Richard Genoud wrote: > > If you could somehow reproduce this with nandsim, it would make it easy > > for me to find the bug. > here it is: > [ 0.921875] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.929687] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.937500] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.953125] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.960937] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.968750] [nandsim] warning: read_byte: unexpected data output > cycle, state is STATE_READY return 0x0 > [ 0.976562] NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 > (Toshiba NAND 128MiB 1,8V 8-bit), page size: 512, OOB size: 16 > [ 0.992187] flash size: 128 MiB > [ 0.992187] page size: 512 bytes > [ 0.992187] OOB area size: 16 bytes > [ 1.000000] sector size: 16 KiB > [ 1.000000] pages number: 262144 > [ 1.007812] pages per sector: 32 > [ 1.007812] bus width: 8 > [ 1.007812] bits in sector size: 14 > [ 1.015625] bits in page size: 9 > [ 1.015625] bits in OOB size: 4 > [ 1.023437] flash size with OOB: 135168 KiB > [ 1.023437] page address bytes: 4 > [ 1.031250] sector address bytes: 3 > [ 1.031250] options: 0x42 > [ 1.039062] Scanning device for bad blocks > [ 1.242187] Creating 1 MTD partitions on "NAND 128MiB 1,8V 8-bit": > [ 1.250000] 0x000000000000-0x000008000000 : "NAND simulator partition 0" > > # flash_erase /dev/mtd0 0 8192 Hmm, cannot reproduce on my x86_64.
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index 64b9c56..6b9d6d8 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c @@ -340,8 +340,8 @@ retry: * of this LEB as it will be deleted and freed in 'ubi_add_to_av()'. */ err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); - kfree(new_aeb); - ubi_free_vid_hdr(ubi, vid_hdr); +// kfree(new_aeb); +// ubi_free_vid_hdr(ubi, vid_hdr); return err; write_error: