diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-06-27 21:22:21 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-11-13 21:39:19 +0100 |
commit | 5cdd929da53dd7347ec86afd94c3b840909c461e (patch) | |
tree | 6ea643c6246ad11ac23e921655a47499b4cd6dac /fs/ext4/mmp.c | |
parent | 9a5941080ef29f1a0347ac2766e4d93312123b21 (diff) |
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 'fs/ext4/mmp.c')
0 files changed, 0 insertions, 0 deletions