Pull alexey-fixes into release branch
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / nfsd / nfscache.c
index f90d70475854f5b85f2f20a5bc61a1821a6cae37..578f2c9d56bec09899d4dc1c0ca135320e7c6bf9 100644 (file)
@@ -185,7 +185,7 @@ nfsd_cache_lookup(struct svc_rqst *rqstp, int type)
        rp->c_state = RC_INPROG;
        rp->c_xid = xid;
        rp->c_proc = proc;
-       rp->c_addr = rqstp->rq_addr;
+       memcpy(&rp->c_addr, svc_addr_in(rqstp), sizeof(rp->c_addr));
        rp->c_prot = proto;
        rp->c_vers = vers;
        rp->c_timestamp = jiffies;