Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288882
b: refs/heads/master
c: 93518dd
h: refs/heads/master
v: v3
  • Loading branch information
Masami Ichikawa authored and Greg Kroah-Hartman committed Feb 24, 2012
1 parent f2d016d commit c33f661
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 8bf11938459ff8ceb8643258d0a35e0f2bc9be17
refs/heads/master: 93518dd2ebafcc761a8637b2877008cfd748c202
11 changes: 6 additions & 5 deletions trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ static int sysfs_sd_setsecdata(struct sysfs_dirent *sd, void **secdata, u32 *sec
void *old_secdata;
size_t old_secdata_len;

iattrs = sd->s_iattr;
if (!iattrs)
iattrs = sysfs_init_inode_attrs(sd);
if (!iattrs)
return -ENOMEM;
if (!sd->s_iattr) {
sd->s_iattr = sysfs_init_inode_attrs(sd);
if (!sd->s_iattr)
return -ENOMEM;
}

iattrs = sd->s_iattr;
old_secdata = iattrs->ia_secdata;
old_secdata_len = iattrs->ia_secdata_len;

Expand Down

0 comments on commit c33f661

Please sign in to comment.