IB/core: Fix memory leak in cm_req_handler error flows
authorMatan Barak <matanb@mellanox.com>
Tue, 14 Nov 2017 12:51:57 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:05 +0000 (15:37 -0700)
commit8b00914654ef56ff5473f4fe1f1168254dbb8a17
tree4626eaef99cce2c7284b3848c355b1b8d2d9c2bb
parent7baaa49af3716fb31877c61f59b74d029ce15b75
IB/core: Fix memory leak in cm_req_handler error flows

In cm_req_handler error flows, sometimes cm_id_priv->timewait_info
isn't free'd.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c