Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255056
b: refs/heads/master
c: a29fa9d
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jul 4, 2011
1 parent 3cd190a commit 03b10df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 1b51e98365e42c27eb2664f8353bc62ab8c55c85
refs/heads/master: a29fa9dfa4d5d1b962825c79f19d9b6f3f15843b
2 changes: 1 addition & 1 deletion trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode)
if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA)
return 4;

if (ui->xattr && (inode->i_mode & S_IFMT) != S_IFREG)
if (ui->xattr && !S_ISREG(inode->i_mode))
return 5;

if (!ubifs_compr_present(ui->compr_type)) {
Expand Down

0 comments on commit 03b10df

Please sign in to comment.