diff options
author | Andre Renaud <andre@bluewatersys.com> | 2007-04-17 19:50:59 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-17 19:50:59 +0200 |
commit | 4226b510371efd9cdc628663527d36aee36054a9 (patch) | |
tree | 061cab08eb3a95d3036d780895c1cc88972d8e7a /fs/jffs2 | |
parent | [MTD] Driver for AT26Fxxx dataflash devices (diff) | |
download | linux-4226b510371efd9cdc628663527d36aee36054a9.tar.xz linux-4226b510371efd9cdc628663527d36aee36054a9.zip |
[MTD] [NAND] Casting bug in nand_default_block_markbad
There is a slight bug in nand_default_block_markbad, where the offset is
cast to an integer, prior to being shifted. This means that on large
offsets, it is incorrectly doing a signed shift & losing bits. Fixed
this by doing the cast after the shift (as is done elsewhere in the code).
Signed-off-by: Andre Renaud <andre@bluewatersys.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions