summaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-01-19 20:18:50 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-01-19 21:37:49 +0100
commit0da2a4ac33c291728d8be5bdb865467dcb078d13 (patch)
tree7f6af191fa9020a8d4bd0cdb828fd15fecd39411 /fs/nfs/write.c
parentLinux 2.6.38-rc1 (diff)
downloadlinux-0da2a4ac33c291728d8be5bdb865467dcb078d13.tar.xz
linux-0da2a4ac33c291728d8be5bdb865467dcb078d13.zip
NFS: fix handling of malloc failure during nfs_flush_multi()
Cleanup of the allocated list entries should not call put_nfs_open_context() on each entry, as the context will always be NULL, causing an oops. Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 10d648ea128b..c8278f4046cb 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -932,7 +932,7 @@ out_bad:
while (!list_empty(&list)) {
data = list_entry(list.next, struct nfs_write_data, pages);
list_del(&data->pages);
- nfs_writedata_release(data);
+ nfs_writedata_free(data);
}
nfs_redirty_request(req);
return -ENOMEM;