summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-02-03 13:34:14 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 01:28:05 +0200
commit8273a0c911d8e068297ef70aa7241ee78db4c712 (patch)
tree3aa97da098ac7417bc3ef8bc9b1a3e5b531ed268 /drivers/mtd/lpddr
parentmtd: return error code from mtd_unpoint (diff)
downloadlinux-8273a0c911d8e068297ef70aa7241ee78db4c712.tar.xz
linux-8273a0c911d8e068297ef70aa7241ee78db4c712.zip
mtd: add offset and length checks to the API function
Add verification of the offset and length to MTD API functions and verify that MTD device offset and length are within MTD device size. The modified API functions are: 'mtd_erase()' 'mtd_point()' 'mtd_unpoint()' 'mtd_get_unmapped_area()' 'mtd_read()' 'mtd_write()' 'mtd_panic_write()' 'mtd_lock()' 'mtd_unlock()' 'mtd_is_locked()' 'mtd_block_isbad()' 'mtd_block_markbad()' This patch also uninlines these functions and exports in mtdcore.c because they are not performance-critical and do not have to be inlined. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/lpddr')
0 files changed, 0 insertions, 0 deletions