]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/svc.c
Merge tag 'linux-kselftest-4.8-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kerne...
[karo-tx-linux.git] / net / sunrpc / svc.c
index 87290a5a9ac7efcc8e9687cff65ea4fc8d9eaa1b..c5b0cb4f4056c4da0a0adc556cf46bebb48d2e7a 100644 (file)
@@ -1194,6 +1194,11 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
                                procp->pc_release(rqstp, NULL, rqstp->rq_resp);
                        goto dropit;
                }
+               if (*statp == rpc_autherr_badcred) {
+                       if (procp->pc_release)
+                               procp->pc_release(rqstp, NULL, rqstp->rq_resp);
+                       goto err_bad_auth;
+               }
                if (*statp == rpc_success &&
                    (xdr = procp->pc_encode) &&
                    !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) {