Fix corner case in hole instantiating in ntfs_attr_pwrite(). (Szaka)

edge.strict_endians
Yura Pakhuchiy 2007-09-04 17:20:13 +03:00
parent 95b044cff3
commit 219d353226
1 changed files with 2 additions and 0 deletions

View File

@ -1260,6 +1260,8 @@ s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b)
if (rlc->lcn >= 0) {
lcn_seek_from = rlc->lcn -
(rlc->vcn - from_vcn);
if (lcn_seek_from < -1)
lcn_seek_from = -1;
break;
}
}