sunrpc: potential memory leak in function rdma_read_xdr
authorChristian Engelmayer <christian.engelmayer@frequentis.com>
Sat, 13 Jun 2009 22:05:26 +0000 (00:05 +0200)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 16 Jun 2009 02:34:32 +0000 (19:34 -0700)
commit59fb30660be3f3ead54b3850c401d462449caaaa
treed052746d89590b44b854ff2a2fc1dfa7d816040b
parente4636d535e32768c8c500641ddb144f56e3dc5c0
sunrpc: potential memory leak in function rdma_read_xdr

In case the check on ch_count fails the cleanup path is skipped and the
previously allocated memory 'rpl_map', 'chl_map' is not freed.

Reported by Coverity.

Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c