fs: ext2: Fix ext2 read buffer overflow

Keep track of the amount of bytes read so no buffer overflow occurs.

Signed-off-by: DEVER Emiel <emiel.dever@psicontrol.com>
(cherry picked from commit 336c650646581fd74fe22c0db0c6e9a702e95b5b)
1 file changed