Fixed bad sanity check before compressing (was permissive)

PERMISSION_HANDLING_BRANCH
Jean-Pierre André 2010-07-22 14:40:24 +02:00
parent 1377f009e7
commit 5533eb565f
1 changed files with 1 additions and 1 deletions

View File

@ -1576,7 +1576,7 @@ s64 ntfs_compressed_pwrite(ntfs_attr *na, runlist_element *wrl, s64 wpos,
}
if ((*update_from < 0)
|| (compressed_part < 0)
|| (compressed_part > (int)na->compression_block_size)) {
|| (compressed_part > (int)na->compression_block_clusters)) {
ntfs_log_error("Bad update vcn or compressed_part %d for compressed write\n",
compressed_part);
errno = EIO;