IB/iser: Fix error flow in iser_create_ib_conn_res()
authorDan Carpenter <error27@gmail.com>
Thu, 6 May 2010 13:22:21 +0000 (16:22 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 12 May 2010 16:30:45 +0000 (09:30 -0700)
commit9fda1ac5fa09c49e9148f85be14f55e2bb856c0f
treedef6cf681e460d54b6fc7fe148e5756fb9d5c4c0
parent39ff05dbbbdb082bbabf06206c56b3cd4ef73904
IB/iser: Fix error flow in iser_create_ib_conn_res()

We shouldn't free things here because we free them later.
The call tree looks like this:
iser_connect() ==> initiating the connection establishment
and later
iser_cma_handler() => iser_route_handler() => iser_create_ib_conn_res()
if we fail here, eventually iser_conn_release() is called, resulting
in a double free.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/iser/iser_verbs.c