diff options
author | Boris Brezillon | 2017-06-27 21:22:21 +0200 |
---|---|---|
committer | Richard Weinberger | 2017-11-13 21:39:19 +0100 |
commit | 5cdd929da53dd7347ec86afd94c3b840909c461e (patch) | |
tree | 6ea643c6246ad11ac23e921655a47499b4cd6dac /drivers/gpu/drm/amd/amdgpu/psp_v3_1.h | |
parent | mtd: remove the get_unmapped_area method (diff) | |
download | kernel-qcow2-linux-5cdd929da53dd7347ec86afd94c3b840909c461e.tar.gz kernel-qcow2-linux-5cdd929da53dd7347ec86afd94c3b840909c461e.tar.xz kernel-qcow2-linux-5cdd929da53dd7347ec86afd94c3b840909c461e.zip |
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/gpu/drm/amd/amdgpu/psp_v3_1.h')
0 files changed, 0 insertions, 0 deletions