Linux/linux 5aa1437fs/ext2 inode.c

ext2: fix a block leak

open file, unlink it, then use ioctl(2) to make it immutable or
append only.  Now close it and watch the blocks *not* freed...

Immutable/append-only checks belong in ->setattr().
Note: the bug is old and backport to anything prior to 737f2e93b972
("ext2: convert to use the new truncate convention") will need
these checks lifted into ext2_setattr().

Cc: stable at kernel.org
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
DeltaFile
+0-10fs/ext2/inode.c
+0-101 files

UnifiedSplitRaw