mtd: mtd_[read|write|erase]: check for valid input data
mtd_[read|write|erase] are input functions to the mtd subsystem, so
check for valid input data here rather than relying on the drivers doing
this. The checks are copied from the Kernel as of 4.5-rc5

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 53eff04 commit 568e345d5acb380bdd25012f751d7c6eeef27699
@Sascha Hauer Sascha Hauer authored on 25 Feb 2016
Showing 2 changed files
View
drivers/mtd/core.c
View
include/linux/mtd/mtd.h