SUNRPC: Fix potential memory scribble in xprt_free_bc_request()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Feb 2014 18:56:54 +0000 (13:56 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Feb 2014 18:56:54 +0000 (13:56 -0500)
commit628356791b04ea988fee070f66a748a823d001bb
treefa4606e35088798f303b0103b1dedae2a446beec
parent06ea0bfe6e6043cb56a78935a19f6f8ebc636226
SUNRPC: Fix potential memory scribble in xprt_free_bc_request()

The call to xprt_free_allocation() will call list_del() on
req->rq_bc_pa_list, which is not attached to a list.
This patch moves the list_del() out of xprt_free_allocation()
and into those callers that need it.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/backchannel_rqst.c