From: Andre Renaud Date: Tue, 17 Apr 2007 17:50:59 +0000 (-0400) Subject: [MTD] [NAND] Casting bug in nand_default_block_markbad X-Git-Tag: v2.6.22-rc1~1116^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4226b510371efd9cdc628663527d36aee36054a9;p=pandora-kernel.git [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 Signed-off-by: Thomas Gleixner Signed-off-by: David Woodhouse --- Reading git-diff-tree failed