summaryrefslogtreecommitdiff
path: root/drivers/mtd/parsers
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2017-06-27 22:22:21 +0300
committerRichard Weinberger <richard@nod.at>2017-11-13 23:39:19 +0300
commit5cdd929da53dd7347ec86afd94c3b840909c461e (patch)
tree6ea643c6246ad11ac23e921655a47499b4cd6dac /drivers/mtd/parsers
parent9a5941080ef29f1a0347ac2766e4d93312123b21 (diff)
downloadlinux-5cdd929da53dd7347ec86afd94c3b840909c461e.tar.xz
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>
Diffstat (limited to 'drivers/mtd/parsers')
0 files changed, 0 insertions, 0 deletions