NFS: fix handling of malloc failure during nfs_flush_multi()
authorFred Isaman <iisaman@netapp.com>
Wed, 19 Jan 2011 19:18:50 +0000 (14:18 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 19 Jan 2011 20:37:49 +0000 (15:37 -0500)
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>
fs/nfs/write.c

index 10d648ea128bf6345df70da0e15ee8ce443ab8e6..c8278f4046cba5a957705c1e43ee675dba388529 100644 (file)
@@ -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;