Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3aebf25b
Commit
3aebf25b
authored
Nov 01, 2005
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Fix a stupid bug causing writes to non-initialized pages to segfault.
Signed-off-by:
Anton Altaparmakov
<
aia21@cantab.net
>
parent
1f04c0a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
fs/ntfs/file.c
fs/ntfs/file.c
+9
-8
No files found.
fs/ntfs/file.c
View file @
3aebf25b
...
...
@@ -668,10 +668,10 @@ map_buffer_cached:
* to, we need to read it in before the write,
* i.e. now.
*/
if
(
!
buffer_uptodate
(
bh
)
&&
((
bh_pos
<
pos
&&
bh_end
>
pos
)
||
(
bh_
end
>
end
&&
bh_end
>
end
))
)
{
if
(
!
buffer_uptodate
(
bh
)
&&
bh_pos
<
end
&&
bh_end
>
pos
&&
(
bh_
pos
<
pos
||
bh_end
>
end
))
{
/*
* If the buffer is fully or partially
* within the initialized size, do an
...
...
@@ -784,10 +784,11 @@ retry_remap:
blocksize_bits
);
cdelta
=
0
;
/*
* If the number of remaining clusters in the
* @pages is smaller or equal to the number of
* cached clusters, unlock the runlist as the
* map cache will be used from now on.
* If the number of remaining clusters touched
* by the write is smaller or equal to the
* number of cached clusters, unlock the
* runlist as the map cache will be used from
* now on.
*/
if
(
likely
(
vcn
+
vcn_len
>=
cend
))
{
if
(
rl_write_locked
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment