Skip to content

Commit

Permalink
NFSv4.1: Fix a request leak on the back channel
Browse files Browse the repository at this point in the history
If the call to svc_process_common() fails, then the request
needs to be freed before we can exit bc_svc_process.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 31, 2012
1 parent 2d11740 commit b3b02ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,8 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
sizeof(req->rq_snd_buf));
return bc_send(req);
} else {
/* Nothing to do to drop request */
/* drop request */
xprt_free_bc_request(req);
return 0;
}
}
Expand Down

0 comments on commit b3b02ae

Please sign in to comment.