diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-18 23:20:35 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-19 11:59:10 -0400 |
commit | 5c2d97cb31fb77981797fec46230ca005b865799 (patch) | |
tree | 8393101586bc3ed4e7577eeae215fc305b1999de /fs/nfs | |
parent | 76723de0cf5b186afe2f329eeef304c321d52bf8 (diff) | |
download | kernel_samsung_aries-5c2d97cb31fb77981797fec46230ca005b865799.zip kernel_samsung_aries-5c2d97cb31fb77981797fec46230ca005b865799.tar.gz kernel_samsung_aries-5c2d97cb31fb77981797fec46230ca005b865799.tar.bz2 |
NFS: Fix nfs_page use after free issues in fs/nfs/write.c
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 8ab3cf1..7084ac9 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -590,8 +590,8 @@ static void nfs_cancel_commit_list(struct list_head *head) req = nfs_list_entry(head->next); nfs_list_remove_request(req); nfs_inode_remove_request(req); - nfs_clear_page_writeback(req); 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) req = nfs_list_entry(head->next); nfs_list_remove_request(req); nfs_mark_request_commit(req); - nfs_clear_page_writeback(req); dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); + nfs_clear_page_writeback(req); } return -ENOMEM; } |