]> err.no Git - linux-2.6/blobdiff - net/sunrpc/pmap_clnt.c
[NETFILTER]: CLUSTERIP: fix memcpy() length typo
[linux-2.6] / net / sunrpc / pmap_clnt.c
index df4d84c9020def6432a97ea89a39d9f374cd1578..4e81f27669239cbf9a4ca83d7d7af2040d30317a 100644 (file)
@@ -53,6 +53,9 @@ rpc_getport(struct rpc_task *task, struct rpc_clnt *clnt)
                        task->tk_pid, clnt->cl_server,
                        map->pm_prog, map->pm_vers, map->pm_prot);
 
+       /* Autobind on cloned rpc clients is discouraged */
+       BUG_ON(clnt->cl_parent != clnt);
+
        spin_lock(&pmap_lock);
        if (map->pm_binding) {
                rpc_sleep_on(&map->pm_bindwait, task, NULL, NULL);