mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
In a state where the list isert_conn->tx_free_list is empty (mostly under traffic), we might fail to receive a command from the isert command pool. This will result in later null deref. In this case, busy-wait until a command will be available (will be freed by the receive context). [2158233.952087] BUG: unable to handle kernel NULL pointer dereference at (null) [2158233.956023] IP: [<ffffffffa04e14d0>] isert_pdu_send+0xc0/0x1f0 [isert_scst] .... [2158233.956023] [<ffffffffa04d98c8>] ? isert_cmnd_alloc+0x78/0x110 [isert_scst] [2158233.956023] [<ffffffffa045b5a0>] req_cmnd_release+0x50/0x130 [iscsi_scst] [2158233.956023] [<ffffffffa04622cb>] iscsi_send_nop_in+0x19b/0x370 [iscsi_scst] Signed-off-by: Ariel Nahum <arieln@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6554 d57e44dd-8a1f-0410-8b47-8ef2f437770f