]> git.baikalelectronics.ru Git - uboot.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)
commitd9c900cee5fa6dacbdd3fca37c1ae955ab4f4355
tree5a6b392ffa848995cd93ddb73f195c4ac3fc7f97
parent8887cc3af8a0c1f7b9920fd895e1c3036fdc7f33
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