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

2018-08-20 Thread Richard Weinberger
Lui Song, Am Montag, 20. August 2018, 08:09:05 CEST schrieb Liu Song: > From: fishland 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 a

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

2018-08-19 Thread Liu Song
From: fishland 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. Signed-off-by: Liu Song Reviewed-by: Jiang Biao --- drivers/mtd/ubi/vtbl.c | 4 1 file changed, 4 insertion