Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38708
b: refs/heads/master
c: 01eb7c0
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Jun 6, 2006
1 parent cdae3c3 commit 74020f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b61b072a8b54212ab0808c443e5c16699390d25
refs/heads/master: 01eb7c07968fdab0cca0d2474346cff176537de8
9 changes: 4 additions & 5 deletions trunk/fs/gfs2/eattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh,
return 0;

if (er->er_data_len) {
char *prefix;
unsigned int l;
char *prefix = NULL;
unsigned int l = 0;
char c = 0;

if (ei->ei_size + ea_size > er->er_data_len)
Expand All @@ -394,11 +394,10 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh,
prefix = "security.";
l = 9;
break;
default:
/* FIXME: Needs looking at again */
break;
}

BUG_ON(l == 0);

memcpy(er->er_data + ei->ei_size, prefix, l);
memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea),
ea->ea_name_len);
Expand Down

0 comments on commit 74020f1

Please sign in to comment.