]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: Use the mirror BBT descriptor when reading its version
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Sun, 10 Jun 2012 10:58:12 +0000 (13:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:34 +0000 (05:50 +0900)
commit9d674ea4d62df55d4f7f225143d27fa93e500b08
treeb2b908bd7e9fa483caf4ee4391af14870b30999c
parent4e180af39587eed3d2ec27afd6df8e45e1594495
mtd: nand: Use the mirror BBT descriptor when reading its version

commit 7bb9c75436212813b38700c34df4bbb6eb82debe upstream.

The code responsible for reading the version of the mirror bbt was
incorrectly using the descriptor of the main bbt.

Pass the mirror bbt descriptor to 'scan_read_raw' when reading the
version of the mirror bbt.

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/nand_bbt.c