Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5c2d97cb
Commit
5c2d97cb
authored
Sep 18, 2006
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Fix nfs_page use after free issues in fs/nfs/write.c
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
76723de0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/nfs/write.c
fs/nfs/write.c
+2
-2
No files found.
fs/nfs/write.c
View file @
5c2d97cb
...
@@ -590,8 +590,8 @@ static void nfs_cancel_commit_list(struct list_head *head)
...
@@ -590,8 +590,8 @@ static void nfs_cancel_commit_list(struct list_head *head)
req
=
nfs_list_entry
(
head
->
next
);
req
=
nfs_list_entry
(
head
->
next
);
nfs_list_remove_request
(
req
);
nfs_list_remove_request
(
req
);
nfs_inode_remove_request
(
req
);
nfs_inode_remove_request
(
req
);
nfs_clear_page_writeback
(
req
);
dec_zone_page_state
(
req
->
wb_page
,
NR_UNSTABLE_NFS
);
dec_zone_page_state
(
req
->
wb_page
,
NR_UNSTABLE_NFS
);
nfs_clear_page_writeback
(
req
);
}
}
}
}
...
@@ -1386,8 +1386,8 @@ nfs_commit_list(struct inode *inode, struct list_head *head, int how)
...
@@ -1386,8 +1386,8 @@ nfs_commit_list(struct inode *inode, struct list_head *head, int how)
req
=
nfs_list_entry
(
head
->
next
);
req
=
nfs_list_entry
(
head
->
next
);
nfs_list_remove_request
(
req
);
nfs_list_remove_request
(
req
);
nfs_mark_request_commit
(
req
);
nfs_mark_request_commit
(
req
);
nfs_clear_page_writeback
(
req
);
dec_zone_page_state
(
req
->
wb_page
,
NR_UNSTABLE_NFS
);
dec_zone_page_state
(
req
->
wb_page
,
NR_UNSTABLE_NFS
);
nfs_clear_page_writeback
(
req
);
}
}
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
...
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