]> git.ipfire.org Git - thirdparty/u-boot.git/commit
JFFS2: fix the reading address over nand's limit
authorWagner Popov dos Santos <wpopov@gmail.com>
Tue, 23 Feb 2021 02:30:58 +0000 (23:30 -0300)
committerTom Rini <trini@konsulko.com>
Wed, 7 Apr 2021 14:22:22 +0000 (10:22 -0400)
commit610a2cc7a38782bf2fa5c1037959a42838ebb2ad
tree5a6b392ffa848995cd93ddb73f195c4ac3fc7f97
parent02395fec007657c5beb4f7fd77784e10b3054c90
JFFS2: fix the reading address over nand's limit

Fixes address violation in functions read_nand_cached() and
read_onenand_cached(). This happens because these functions
try to read a fixed amount
of data even when the offset+length
is above the nand's limit.

Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
fs/jffs2/jffs2_1pass.c