]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] u14-34f fix
authorAndrew Morton <akpm@digeo.com>
Wed, 12 Feb 2003 05:09:17 +0000 (21:09 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 12 Feb 2003 05:09:17 +0000 (21:09 -0800)
Need to reenable interrupts around the call to scsi_register(), which blocks.

drivers/scsi/u14-34f.c

index 81b9f1cb2e73c854815c6831be9539be6a430d22..98264f5c6f5ba0a24ef78a9423d8cb4d32ff0db8 100644 (file)
@@ -847,9 +847,9 @@ static int port_detect \
 
    if (have_old_firmware) tpnt->use_clustering = DISABLE_CLUSTERING;
 
-   spin_unlock(&driver_lock);
+   spin_unlock_irq(&driver_lock);
    sh[j] = scsi_register(tpnt, sizeof(struct hostdata));
-   spin_lock(&driver_lock);
+   spin_lock_irq(&driver_lock);
 
    if (sh[j] == NULL) {
       printk("%s: unable to register host, detaching.\n", name);