diff options
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r-- | net/sunrpc/svc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index cc9852897395..c5b0cb4f4056 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -1188,11 +1188,17 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) | |||
1188 | *statp = procp->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp); | 1188 | *statp = procp->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp); |
1189 | 1189 | ||
1190 | /* Encode reply */ | 1190 | /* Encode reply */ |
1191 | if (test_bit(RQ_DROPME, &rqstp->rq_flags)) { | 1191 | if (*statp == rpc_drop_reply || |
1192 | test_bit(RQ_DROPME, &rqstp->rq_flags)) { | ||
1192 | if (procp->pc_release) | 1193 | if (procp->pc_release) |
1193 | procp->pc_release(rqstp, NULL, rqstp->rq_resp); | 1194 | procp->pc_release(rqstp, NULL, rqstp->rq_resp); |
1194 | goto dropit; | 1195 | goto dropit; |
1195 | } | 1196 | } |
1197 | if (*statp == rpc_autherr_badcred) { | ||
1198 | if (procp->pc_release) | ||
1199 | procp->pc_release(rqstp, NULL, rqstp->rq_resp); | ||
1200 | goto err_bad_auth; | ||
1201 | } | ||
1196 | if (*statp == rpc_success && | 1202 | if (*statp == rpc_success && |
1197 | (xdr = procp->pc_encode) && | 1203 | (xdr = procp->pc_encode) && |
1198 | !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) { | 1204 | !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) { |