public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] check for can_queue != 0 in scsi_host_alloc
@ 2003-06-24  6:48 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-06-24  6:48 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi

This is to give a proper warning if someone tries to load an
unconverted old-style driver.


--- 1.77/drivers/scsi/hosts.c	Thu Jun  5 20:52:51 2003
+++ edited/drivers/scsi/hosts.c	Sat Jun 21 12:24:27 2003
@@ -144,6 +144,12 @@
 		dump_stack();
         }
 
+	if (!sht->can_queue) {
+		printk(KERN_ERR "%s: can_queue = 0 no more supported\n",
+				sht->name);
+		return NULL;
+	}
+
 	/* if its not set in the template, use the default */
 	if (!sht->shost_attrs)
 		 sht->shost_attrs = scsi_sysfs_shost_attrs;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-24  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-24  6:48 [PATCH] check for can_queue != 0 in scsi_host_alloc Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox