aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/svc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 06b52e465f47..b35048fabe22 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -487,6 +487,10 @@ svc_destroy(struct svc_serv *serv)
487 if (svc_serv_is_pooled(serv)) 487 if (svc_serv_is_pooled(serv))
488 svc_pool_map_put(); 488 svc_pool_map_put();
489 489
490#if defined(CONFIG_NFS_V4_1)
491 svc_sock_destroy(serv->bc_xprt);
492#endif /* CONFIG_NFS_V4_1 */
493
490 svc_unregister(serv); 494 svc_unregister(serv);
491 kfree(serv->sv_pools); 495 kfree(serv->sv_pools);
492 kfree(serv); 496 kfree(serv);