Merge branch 'pm-cpufreq-sched' into pm-cpufreq
[cascardo/linux.git] / fs / nfs / nfs4client.c
index 8d7d08d..cd3b7cf 100644 (file)
@@ -817,6 +817,11 @@ static int nfs4_set_client(struct nfs_server *server,
                goto error;
        }
 
+       if (server->nfs_client == clp) {
+               error = -ELOOP;
+               goto error;
+       }
+
        /*
         * Query for the lease time on clientid setup or renewal
         *