mtd: core: check offset in mtd_block_markbad
Check if the given offset is valid for the mtd device. Print an error
message if not to inform the user in the command 'nand'.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cc7a403 commit 53eff047f96a7d1a8eb899619ce659945ab4a7d2
@Stefan Christ Stefan Christ authored on 15 Feb 2016
Sascha Hauer committed on 23 Feb 2016
Showing 2 changed files
View
commands/nand.c
View
drivers/mtd/core.c