diff options
| author | Fred Isaman <iisaman@netapp.com> | 2011-01-19 14:18:50 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-01-19 15:37:49 -0500 |
| commit | 0da2a4ac33c291728d8be5bdb865467dcb078d13 (patch) | |
| tree | 7f6af191fa9020a8d4bd0cdb828fd15fecd39411 | |
| parent | c56eb8fb6dccb83d9fe62fd4dc00c834de9bc470 (diff) | |
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>
| -rw-r--r-- | 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 10d648ea128b..c8278f4046cb 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
| @@ -932,7 +932,7 @@ out_bad: | |||
| 932 | while (!list_empty(&list)) { | 932 | while (!list_empty(&list)) { |
| 933 | data = list_entry(list.next, struct nfs_write_data, pages); | 933 | data = list_entry(list.next, struct nfs_write_data, pages); |
| 934 | list_del(&data->pages); | 934 | list_del(&data->pages); |
| 935 | nfs_writedata_release(data); | 935 | nfs_writedata_free(data); |
| 936 | } | 936 | } |
| 937 | nfs_redirty_request(req); | 937 | nfs_redirty_request(req); |
| 938 | return -ENOMEM; | 938 | return -ENOMEM; |
