diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index d936d53a1..0392a029f 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -1189,7 +1189,8 @@ retry: sock = conn->sock; - if ((write_cmnd->parent_req->scst_cmd != NULL) && + if (write_cmnd->parent_req->scst_cmd && + write_cmnd->parent_req->scst_state != ISCSI_CMD_STATE_AEN && scst_cmd_get_dh_data_buff_alloced(write_cmnd->parent_req->scst_cmd)) sock_sendpage = sock_no_sendpage; else