Skip to content

Commit f776372

Browse files
committed
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 regression fixes from Ted Ts'o: "Bug fixes, including two regressions introduced in v3.8. The most serious of these regressions is a buffer cache leak." * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: remove duplicate call to ext4_bread() in ext4_init_new_dir() ext4: release buffer in failed path in dx_probe() ext4: fix configuration dependencies for ext4 ACLs and security labels
2 parents 4c9014f + fef0ebd commit f776372

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fs/ext4/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config EXT4_USE_FOR_EXT23
4141

4242
config EXT4_FS_POSIX_ACL
4343
bool "Ext4 POSIX Access Control Lists"
44+
depends on EXT4_FS
4445
select FS_POSIX_ACL
4546
help
4647
POSIX Access Control Lists (ACLs) support permissions for users and
@@ -53,6 +54,7 @@ config EXT4_FS_POSIX_ACL
5354

5455
config EXT4_FS_SECURITY
5556
bool "Ext4 Security Labels"
57+
depends on EXT4_FS
5658
help
5759
Security labels support alternative access control models
5860
implemented by security modules like SELinux. This option

fs/ext4/namei.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ dx_probe(const struct qstr *d_name, struct inode *dir,
722722
ext4_warning(dir->i_sb, "Node failed checksum");
723723
brelse(bh);
724724
*err = ERR_BAD_DX_DIR;
725-
goto fail;
725+
goto fail2;
726726
}
727727
set_buffer_verified(bh);
728728

@@ -2368,7 +2368,6 @@ static int ext4_init_new_dir(handle_t *handle, struct inode *dir,
23682368
}
23692369

23702370
inode->i_size = EXT4_I(inode)->i_disksize = blocksize;
2371-
dir_block = ext4_bread(handle, inode, 0, 1, &err);
23722371
if (!(dir_block = ext4_bread(handle, inode, 0, 1, &err))) {
23732372
if (!err) {
23742373
err = -EIO;

0 commit comments

Comments
 (0)