diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-22 10:36:25 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-22 10:36:25 -0400 |
commit | 90cdd2083aea9a536ecdef62840db01fff2e645d (patch) | |
tree | 6ec0aaffb66697f7b973a53532c4b782129a0c2e /fs/gfs2/eattr.c | |
parent | 639b6d79b8c20cce4079fb035640c65456324d1c (diff) | |
download | kernel_samsung_smdk4412-90cdd2083aea9a536ecdef62840db01fff2e645d.zip kernel_samsung_smdk4412-90cdd2083aea9a536ecdef62840db01fff2e645d.tar.gz kernel_samsung_smdk4412-90cdd2083aea9a536ecdef62840db01fff2e645d.tar.bz2 |
[GFS2] Flag up issue in selinux code
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/eattr.c')
-rw-r--r-- | fs/gfs2/eattr.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c index 187fba1..3466015 100644 --- a/fs/gfs2/eattr.c +++ b/fs/gfs2/eattr.c @@ -395,17 +395,14 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh, l = 9; break; default: + /* FIXME: Needs looking at again */ break; } - memcpy(er->er_data + ei->ei_size, - prefix, l); - memcpy(er->er_data + ei->ei_size + l, - GFS2_EA2NAME(ea), + memcpy(er->er_data + ei->ei_size, prefix, l); + memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea), ea->ea_name_len); - memcpy(er->er_data + ei->ei_size + - ea_size - 1, - &c, 1); + memcpy(er->er_data + ei->ei_size + ea_size - 1, &c, 1); } ei->ei_size += ea_size; |