Files
u-boot/drivers
Boris Brezillon 8fad769f1e mtd: Add sanity checks in mtd_write/read_oob()
Unlike what's done in mtd_read/write(), there are no checks to make sure
the parameters passed to mtd_read/write_oob() are consistent, which
forces implementers of ->_read/write_oob() to do it, which in turn leads
to code duplication and possibly errors in the logic.

Do general sanity checks, like ops fields consistency and range checking.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Peter Pan <peterpandong@micron.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
[Miquel: squashed the fix about the chip's size check]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-09-20 20:10:49 +05:30
..
2018-08-03 19:53:10 -04:00
2018-07-26 10:59:35 -07:00
2018-09-18 08:12:21 -06:00
2018-09-18 08:12:21 -06:00
2018-09-18 08:12:21 -06:00
2018-08-17 13:03:54 -04:00
2018-09-18 00:01:18 -06:00
2018-07-19 16:31:38 -04:00
2018-08-03 11:14:08 +05:30
2018-09-18 00:01:18 -06:00
2018-09-18 00:01:18 -06:00
2018-08-11 08:07:36 +02:00