[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 08/21: ext2fs: Fix block allocation.
From: |
Samuel Thibault |
Subject: |
[hurd] 08/21: ext2fs: Fix block allocation. |
Date: |
Sat, 04 Mar 2017 21:10:58 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 4490e9a08367c7af617358de5b85ae7ab5198278
Author: Justus Winter <address@hidden>
Date: Sat Oct 8 18:25:13 2016 +0200
ext2fs: Fix block allocation.
* ext2fs/xattr.c (ext2_set_xattr): Check returned block number before
mapping it.
---
ext2fs/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ext2fs/xattr.c b/ext2fs/xattr.c
index 41e8c89..c5771fe 100644
--- a/ext2fs/xattr.c
+++ b/ext2fs/xattr.c
@@ -704,7 +704,6 @@ ext2_set_xattr (struct node *np, const char *name, const
char *value,
goal = sblock->s_first_data_block + np->dn->info.i_block_group *
EXT2_BLOCKS_PER_GROUP (sblock);
blkno = ext2_new_block (goal, 0, 0, 0);
- block = disk_cache_block_ref (blkno);
if (blkno == 0)
{
@@ -712,6 +711,7 @@ ext2_set_xattr (struct node *np, const char *name, const
char *value,
goto cleanup;
}
+ block = disk_cache_block_ref (blkno);
memset (block, 0, block_size);
header = EXT2_XATTR_HEADER (block);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (cef4f1d -> db7dd39), Samuel Thibault, 2017/03/04
- [hurd] 03/21: ext2fs: Fix typo., Samuel Thibault, 2017/03/04
- [hurd] 06/21: ext2fs: Do not read translator record on Linux filesystems., Samuel Thibault, 2017/03/04
- [hurd] 10/21: ext2fs: fix block reference, Samuel Thibault, 2017/03/04
- [hurd] 16/21: libshouldbeinlibc: Fix NDEBUG build., Samuel Thibault, 2017/03/04
- [hurd] 08/21: ext2fs: Fix block allocation.,
Samuel Thibault <=
- [hurd] 12/21: ext2fs: fix extended attribute retrieval, Samuel Thibault, 2017/03/04
- [hurd] 11/21: ext2fs: minor cleanup, Samuel Thibault, 2017/03/04
- [hurd] 15/21: Fix mig URL, Samuel Thibault, 2017/03/04
- [hurd] 19/21: boot: Fix failing device lookups in unprivileged mode., Samuel Thibault, 2017/03/04
- [hurd] 09/21: ext2fs: Fix potential block leak., Samuel Thibault, 2017/03/04
- [hurd] 14/21: Merge remote-tracking branch 'remotes/darnassus/ext2fs-xattrs', Samuel Thibault, 2017/03/04
- [hurd] 05/21: ext2fs: Fix block leak in xattr code., Samuel Thibault, 2017/03/04
- [hurd] 21/21: Avoid ports_interrupt_rpcs cancel itself, Samuel Thibault, 2017/03/04
- [hurd] 07/21: ext2fs: Require users to opt-in for xattr-based translator records., Samuel Thibault, 2017/03/04
- [hurd] 20/21: boot: Make the halt message nicer., Samuel Thibault, 2017/03/04