From: Dimitri Gorokhovik Date: Thu, 3 Sep 2009 13:04:22 +0000 (+0100) Subject: mtd: nftl: fix offset alignments X-Git-Tag: v2.6.31-rc9~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f05c2b68520f94e365f9d347a7076f4ff00ad5;p=pandora-kernel.git mtd: nftl: fix offset alignments Arithmetic conversion in the mask computation makes the upper word of the second argument passed down to mtd->read_oob(), be always 0 (assuming 'offs' being a 64-bit signed long long type, and 'mtd->writesize' being a 32-bit unsigned int type). This patch applies over the other one adding masking in nftl_write, "nftl: write support is broken". Signed-off-by: Dimitri Gorokhovik Cc: Tim Gardner Cc: Scott James Remnant Signed-off-by: David Woodhouse --- Reading git-diff-tree failed