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 b90cb10 commit 1b513f6Copy full SHA for 1b513f6
fs/ntfs/super.c
@@ -2092,7 +2092,8 @@ static bool load_system_files(ntfs_volume *vol)
2092
// TODO: Initialize security.
2093
/* Get the extended system files' directory inode. */
2094
vol->extend_ino = ntfs_iget(sb, FILE_Extend);
2095
- if (IS_ERR(vol->extend_ino) || is_bad_inode(vol->extend_ino)) {
+ if (IS_ERR(vol->extend_ino) || is_bad_inode(vol->extend_ino) ||
2096
+ !S_ISDIR(vol->extend_ino->i_mode)) {
2097
if (!IS_ERR(vol->extend_ino))
2098
iput(vol->extend_ino);
2099
ntfs_error(sb, "Failed to load $Extend.");
0 commit comments