]> git.baikalelectronics.ru Git - kernel.git/commit
IB/iser: Fix possible NULL derefernce ib_conn->device in session_create
authorAriel Nahum <arieln@mellanox.com>
Sun, 7 Dec 2014 14:09:58 +0000 (16:09 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:44 +0000 (18:11 -0800)
commit8af764461a2058f030113b85a8510cb526f8ffd9
tree195d4267872b603045b31bd6b2a71496fcc44b53
parent5425bbf87edde0a4795f2b304c1a60f06e7c297f
IB/iser: Fix possible NULL derefernce ib_conn->device in session_create

If rdma_cm error event comes after ep_poll but before conn_bind, we
should protect against dereferncing the device (which may have been
terminated) in session_create and conn_create (already protected)
callbacks.

Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.c