diff options
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index de82c5d04ab9..285038548da9 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -85,7 +85,7 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode) | |||
85 | if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) | 85 | if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) |
86 | return 4; | 86 | return 4; |
87 | 87 | ||
88 | if (ui->xattr && (inode->i_mode & S_IFMT) != S_IFREG) | 88 | if (ui->xattr && !S_ISREG(inode->i_mode)) |
89 | return 5; | 89 | return 5; |
90 | 90 | ||
91 | if (!ubifs_compr_present(ui->compr_type)) { | 91 | if (!ubifs_compr_present(ui->compr_type)) { |