diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-04-14 18:08:11 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-04-15 16:07:12 -0400 |
commit | c4de4663e0fa858e3a84f9b32b2e1dd2de23fab2 (patch) | |
tree | fefd378c2f4e0af4766b2d4febb10a5e80ad9c24 /usr | |
parent | c841e12add6926d64aa608687893465330b5a03e (diff) |
IB/iser: Fix unload during ep_poll wrong dereference
In case the user unloaded ib_iser while ep_connect is in
progress, we need to destroy the endpoint although ep_disconnect
wasn't invoked (we detect this by the iser conn state != DOWN).
However, if we got an REJECTED/UNREACHABLE CM event we move the
connection state to DOWN which will prevent us from destroying
the endpoint in the module unload stage. Fix this by setting the
connection state to TERMINATING in iser_conn_error so we can still
destroy the endpoint at unload stage.
Reported-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions