VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> 2011-05-08 20:44:38 +0200 committer: Linus Torvalds <torvalds@linux-foundation.org> 2011-05-09 09:04:24 -0700 commit: c3514817445a5a5e6c0d0c8152f5f161a98001db parent: d0969d1949cc67a0f100f30ad69ec7ec1eca70d2
Commit Summary:
HPFS: Move declaration up, so that there are no out-of-scope pointers
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hpfs/ea.c b/fs/hpfs/ea.c
index 7f1d90ca5eeb..d8b84d113c89 100644
--- a/fs/hpfs/ea.c
+++ b/fs/hpfs/ea.c
@@ -76,6 +76,7 @@ int hpfs_read_ea(struct super_block *s, struct fnode *fnode, char *key,
 	unsigned pos;
 	int ano, len;
 	secno a;
+	char ex[4 + 255 + 1 + 8];
 	struct extended_attribute *ea;
 	struct extended_attribute *ea_end = fnode_end_ea(fnode);
 	for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea))
@@ -93,7 +94,6 @@ int hpfs_read_ea(struct super_block *s, struct fnode *fnode, char *key,
 	ano = fnode->ea_anode;
 	pos = 0;
 	while (pos < len) {
-		char ex[4 + 255 + 1 + 8];
 		ea = (struct extended_attribute *)ex;
 		if (pos + 4 > len) {
 			hpfs_error(s, "EAs don't end correctly, %s %08x, len %08x",