IB/cm: Pair cm_alloc_response_msg() with a cm_free_response_msg()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Jun 2021 10:27:01 +0000 (13:27 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 2 Jun 2021 18:41:57 +0000 (15:41 -0300)
commit96376a40959e32502208210c62e68a6c60acfb48
tree655db26a67aafcc3f9e59b652ad01642dce4441b
parentf97442887275d11c88c2899e720fe945c1f61488
IB/cm: Pair cm_alloc_response_msg() with a cm_free_response_msg()

This is not a functional change, but it helps make the purpose of all the
cm_free_msg() calls clearer. In this case a response msg has a NULL
context[0], and is never placed in cm_id_priv->msg.

Link: https://lore.kernel.org/r/5cd53163be7df0a94f0d4ef7294546bc674fb74a.1622629024.git.leonro@nvidia.com
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cm.c