Message ID | 4C1A4A69.7060801@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 6660fa9..c1ff708 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -419,8 +419,9 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) shost->ehandler = kthread_run(scsi_error_handler, shost, "scsi_eh_%d", shost->host_no); + rval = PTR_ERR(shost->ehandler); if (IS_ERR(shost->ehandler)) { - rval = PTR_ERR(shost->ehandler); + printk(KERN_WARNING "scsi%d: error handler thread failed to spawn\n", rval); goto fail_kfree;