Detected by Smatch.
inode.c:1796 load_attribute_list_mount() warn:
ignoring unreachable code.
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
/* The attribute list cannot be sparse. */
if (lcn < 0) {
ntfs_error(sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read attribute list.");
- goto err_out;
+ return -EIO;
}
rl_byte_off = ntfs_cluster_to_bytes(vol, lcn);
round_up(rl_byte_len, SECTOR_SIZE));
if (err) {
ntfs_error(sb, "Cannot read attribute list.");
- goto err_out;
+ return -EIO;
}
if (al + rl_byte_len >= al_end) {
}
done:
return err;
- /* Real overflow! */
- ntfs_error(sb, "Attribute list buffer overflow. Read attribute list is truncated.");
-err_out:
- err = -EIO;
- goto done;
}
/*