]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fix callback return value check
authorBaruch Siach <baruch@tkos.co.il>
Mon, 9 Aug 2010 04:20:23 +0000 (07:20 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 22:26:13 +0000 (23:26 +0100)
commit081b931ca1dd6ae1a9308ceb457cb0cf0ef17874
treee48ab66a3f6578a05fe83a3d099a7d0f7b04a0d2
parent8258f8052bff5ae0035509193ca8bb7295e2206c
mtd: fix callback return value check

Drivers may (and do) return negative errno values other than -1 from the
ecc.correct callback.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c