From: Adrian Hunter Date: Wed, 31 Jan 2007 15:58:29 +0000 (+0200) Subject: [MTD] [NAND] Correctly validate out-of-band offset and length X-Git-Tag: v2.6.21-rc1~66^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0373615579c7359dfd0bc66139c2e7bf67793480;p=pandora-kernel.git [MTD] [NAND] Correctly validate out-of-band offset and length Add checks to ensure that out-of-band reads and writes are not attempted with an invalid offset or length. Specifically, the offset must be less than the size of oob for a page and the length must not go beyond the size of the device. Additionally the checks must adjust for auto-placement (MTD_OOB_AUTO) of oob data. Signed-off-by: Adrian Hunter Signed-off-by: David Woodhouse --- Reading git-diff-tree failed