NFS: Fix a reference leak in nfs_wb_cancel_page()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Jan 2010 20:41:34 +0000 (15:41 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Jan 2010 20:41:34 +0000 (15:41 -0500)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfs/write.c

index d171696..dac8d76 100644 (file)
@@ -1541,6 +1541,7 @@ int nfs_wb_page_cancel(struct inode *inode, struct page *page)
                        break;
                }
                ret = nfs_wait_on_request(req);
+               nfs_release_request(req);
                if (ret < 0)
                        goto out;
        }