Re: [PATCH] mtd/ubi: Make sure to read volume record from LEB 0 or LEB 1

From: Richard Weinberger
Date: Mon Aug 20 2018 - 16:22:45 EST

Lui Song,

Am Montag, 20. August 2018, 08:09:05 CEST schrieb Liu Song:
> From: fishland <liu.song11@xxxxxxxxxx>

Please use your real name. 1st Signed-off-by and patch author should match.

> Even though we protect on-flash data by CRC checksums,
> we still don't trust the media. If lnum is not 0 or 1,
> access exceed array boundary can lead to bad situation.

Good find! I'll queue this for the next fixes-pull-request.