]> git.baikalelectronics.ru Git - uboot.git/commit
fs: ext4: fix files seen as symlink during deletion
authorCorentin GUILLEVIC <corentin.guillevic@smile.fr>
Fri, 17 Mar 2023 12:15:12 +0000 (13:15 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commit59f27d574367b53b1b08b48da374f3b75b7aebd1
tree13b9182c82c79f825ce66bf05a6d27110b3f98c6
parent2d4a491737b2888211fb27150088148740cf3dbc
fs: ext4: fix files seen as symlink during deletion

The deletion process handles special case for symlinks whose target are
small enough that it fits in struct ext2_inode.b.symlink. So no block had
been allocated. But the check of file type wrongly considered regular
files as symlink. So, no block was freed. So, the EXT4 partition could be
corrupted because of no free block available.

Signed-off-by: Corentin GUILLEVIC <corentin.guillevic@smile.fr>
fs/ext4/ext4_write.c