From: Shmulik Ladkani Date: Wed, 9 May 2012 10:13:34 +0000 (+0300) Subject: mtd: nand: check the return code of 'read_oob/read_oob_raw' X-Git-Tag: v3.5-rc1~8^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1951f2f710a621ae0bc4268617046a6c02c634d0;p=pandora-kernel.git mtd: nand: check the return code of 'read_oob/read_oob_raw' Apparently, there is an implementor of 'read_oob' which may return an error inidication (e.g. docg4_read_oob may return -EIO). Test the return value of 'read_oob/read_oob_raw', and if negative, propagate the error, so it's returned by the '_read_oob' interface. Signed-off-by: Shmulik Ladkani Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed