]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5657a7342464526a9f72dccca26787341c43a36
treefa4606e35088798f303b0103b1dedae2a446beec
parent20e1baa065ad52c71e491233dc9d50bc7a0ce1ec
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