[PATCH] mtd: core: check offset in mtd_block_markbad

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 22 22:56:44 PST 2016


On Mon, Feb 15, 2016 at 11:01:24AM +0100, Stefan Christ wrote:
> 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 at phytec.de>
> ---
>  commands/nand.c    | 9 +++++++--
>  drivers/mtd/core.c | 3 +++
>  2 files changed, 10 insertions(+), 2 deletions(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list