]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MTD: Fatal regression in drivers/mtd/redboot.c in 2.6.20
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 12 Feb 2007 23:26:22 +0000 (09:56 +1030)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:21 +0000 (10:50 -0800)
commit4231a5720e9a6fe342e88895e67b0f0ed4d8c1e6
treeba88cd1a49d989de1ca8a4068a4b224668a5da6a
parent7df8c214f25f15a352326ed9e7bcf6debb2f6fa3
MTD: Fatal regression in drivers/mtd/redboot.c in 2.6.20

[MTD] Fix regression in RedBoot partition scanning

This fixes a regression introduced by the attempt to handle RedBoot FIS
tables which are smaller than an eraseblock, in commit
0b47d654089c5ce3f2ea26a4485db9bcead1e515

It moves the recalculation of the number of slots in the table to the
correct place, and improves the heuristic for when we think we need to
byte-swap what we read from the flash.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Cc: Rod Whitby <rod@whitby.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/redboot.c