From 965ecbc8fbccf543ee56f56be1111cb2cd41b4b3 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Sun, 19 Feb 2012 08:46:49 +0100 Subject: [PATCH] --- yaml --- r: 294491 b: refs/heads/master c: abd96698613eb27415e7028b6100be930920adc6 h: refs/heads/master i: 294489: e468aa103875701fba1e0087c74579fdb67cb60b 294487: e5f10d8096f5c961a337d6c8ce1794c49ffe8727 v: v3 --- [refs] | 2 +- trunk/fs/nfs/client.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 17f33a5bcb50..513bf7e8883b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9937347a1ee6a67e450cc9e90750ce0b10abfe75 +refs/heads/master: abd96698613eb27415e7028b6100be930920adc6 diff --git a/trunk/fs/nfs/client.c b/trunk/fs/nfs/client.c index d0f850ffeb19..8563585cccec 100644 --- a/trunk/fs/nfs/client.c +++ b/trunk/fs/nfs/client.c @@ -172,7 +172,7 @@ static struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_ clp->cl_rpcclient = ERR_PTR(-EINVAL); clp->cl_proto = cl_init->proto; - clp->net = cl_init->net; + clp->net = get_net(cl_init->net); #ifdef CONFIG_NFS_V4 err = nfs_get_cb_ident_idr(clp, cl_init->minorversion); @@ -300,6 +300,7 @@ static void nfs_free_client(struct nfs_client *clp) nfs4_deviceid_purge_client(clp); + put_net(clp->net); kfree(clp->cl_hostname); kfree(clp->server_scope); kfree(clp);