[PATCH 6/7] NFS: put open context on error in nfs_flush_multi

Steve Dickson steved at redhat.com
Tue May 1 17:49:53 UTC 2012


From: Fred Isaman <iisaman at netapp.com>

Cc: <stable at vger.kernel.org>
Signed-off-by: Fred Isaman <iisaman at netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust at netapp.com>
---
 fs/nfs/write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 834f0fe..8fcc23a 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -974,7 +974,7 @@ out_bad:
 	while (!list_empty(res)) {
 		data = list_entry(res->next, struct nfs_write_data, list);
 		list_del(&data->list);
-		nfs_writedata_free(data);
+		nfs_writedata_release(data);
 	}
 	nfs_redirty_request(req);
 	return -ENOMEM;
-- 
1.7.7.6



More information about the kernel mailing list