Message ID | 1443186127-8533-1-git-send-email-emilne@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index dfcc45b..a26b533 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -3946,11 +3946,9 @@ schedule_resp(struct scsi_cmnd *cmnd, struct sdebug_dev_info *devip, if (WARN_ON(!cmnd)) return SCSI_MLQUEUE_HOST_BUSY; - if (NULL == devip) { - pr_warn("called devip == NULL\n"); - /* no particularly good error to report back */ - return SCSI_MLQUEUE_HOST_BUSY; - } + /* devip will be NULL when probing nonexistent LUNs w/o REPORT LUNS */ + if (NULL == devip) + goto respond_in_thread; sdp = cmnd->device;