We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b89819 commit 0a9e740Copy full SHA for 0a9e740
fs/isofs/inode.c
@@ -1440,9 +1440,16 @@ static int isofs_read_inode(struct inode *inode, int relocated)
1440
inode->i_op = &page_symlink_inode_operations;
1441
inode_nohighmem(inode);
1442
inode->i_data.a_ops = &isofs_symlink_aops;
1443
- } else
+ } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) ||
1444
+ S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) {
1445
/* XXX - parse_rock_ridge_inode() had already set i_rdev. */
1446
init_special_inode(inode, inode->i_mode, inode->i_rdev);
1447
+ } else {
1448
+ printk(KERN_DEBUG "ISOFS: Invalid file type 0%04o for inode %lu.\n",
1449
+ inode->i_mode, inode->i_ino);
1450
+ ret = -EIO;
1451
+ goto fail;
1452
+ }
1453
1454
ret = 0;
1455
out:
0 commit comments