diff options
Diffstat (limited to 'fs/hpfs/ea.c')
| -rw-r--r-- | fs/hpfs/ea.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
| 76 | unsigned pos; | 76 | unsigned pos; |
| 77 | int ano, len; | 77 | int ano, len; |
| 78 | secno a; | 78 | secno a; |
| 79 | char ex[4 + 255 + 1 + 8]; | ||
| 79 | struct extended_attribute *ea; | 80 | struct extended_attribute *ea; |
| 80 | struct extended_attribute *ea_end = fnode_end_ea(fnode); | 81 | struct extended_attribute *ea_end = fnode_end_ea(fnode); |
| 81 | for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) | 82 | 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, | |||
| 93 | ano = fnode->ea_anode; | 94 | ano = fnode->ea_anode; |
| 94 | pos = 0; | 95 | pos = 0; |
| 95 | while (pos < len) { | 96 | while (pos < len) { |
| 96 | char ex[4 + 255 + 1 + 8]; | ||
| 97 | ea = (struct extended_attribute *)ex; | 97 | ea = (struct extended_attribute *)ex; |
| 98 | if (pos + 4 > len) { | 98 | if (pos + 4 > len) { |
| 99 | hpfs_error(s, "EAs don't end correctly, %s %08x, len %08x", | 99 | hpfs_error(s, "EAs don't end correctly, %s %08x, len %08x", |
