From: Baruch Siach Date: Wed, 13 May 2015 08:17:37 +0000 (+0300) Subject: mtd: mxc_nand: limit the size of used oob X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e7e4730c178f32a14b781f7c55564d99c4dda3f;p=pandora-kernel.git mtd: mxc_nand: limit the size of used oob For 4k pages the i.MX NFC hardware uses no more than 218 bytes for 8bit ECC data. Larger oobsize confuses the logic of copy_spare(). Limit the size of used oob size to avoid that. Reviewed-by: Sascha Hauer Acked-by: Uwe Kleine-König Signed-off-by: Baruch Siach Signed-off-by: Brian Norris --- Reading git-diff-tree failed