|
@@ -1593,7 +1593,9 @@ int iscsit_process_nop_out(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
|
|
|
* Initiator is expecting a NopIN ping reply..
|
|
|
*/
|
|
|
if (hdr->itt != RESERVED_ITT) {
|
|
|
- BUG_ON(!cmd);
|
|
|
+ if (!cmd)
|
|
|
+ return iscsit_add_reject(conn, ISCSI_REASON_PROTOCOL_ERROR,
|
|
|
+ (unsigned char *)hdr);
|
|
|
|
|
|
spin_lock_bh(&conn->cmd_lock);
|
|
|
list_add_tail(&cmd->i_conn_node, &conn->conn_cmd_list);
|