]> git.baikalelectronics.ru Git - uboot.git/commit
fs: ext4: check the minimal partition size to mount
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 8 Mar 2023 08:49:54 +0000 (09:49 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 16:51:14 +0000 (12:51 -0400)
commited8de23af2ce21d7d6bb371e158b5d4f1c608ad1
treeadb43064bab63c63fc3a164866ff6de66bf5b918
parentfc679a59e3e9e404bfb8f0f5c37cc5094714ebbf
fs: ext4: check the minimal partition size to mount

No need to mount a too small partition to handle a EXT4 file system.

This patch add a test on partition size before to read the
SUPERBLOCK_SIZE buffer and avoid error latter in fs_devread() function.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
fs/ext4/ext4_common.c