]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Don't free chunk that we have failed to allocate
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Fri, 12 Oct 2012 21:10:11 +0000 (21:10 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Oct 2012 18:05:00 +0000 (11:05 -0700)
commit3b4e53fc9ceff7a38a986c02fa4c5cfc59bd9523
treef52a29e97fda3e60e84755939102601e5c646692
parent1347743ab85deacc11378ae9a8eddeeaf6e10b63
RDMA/cxgb4: Don't free chunk that we have failed to allocate

In the error path of registering memory when there's a failure to
allocate a chunk from the memory pool, we try to free the same chunk
we just failed to allocate, which will BUG().

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/mem.c