lkcd
[Top] [All Lists]

Re: Minor bug in 1.0.2

To: Keith Owens <kaos@xxxxxxxxxx>
Subject: Re: Minor bug in 1.0.2
From: Matt Robinson <yakker@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 9 Nov 1999 07:13:10 -0800 (PST)
Cc: lkcd@xxxxxxxxxxx
In-reply-to: <19991109130609.20065.qmail@mail.ocs.com.au>
Sender: owner-lkcd@xxxxxxxxxxx
I've forwarded this on to Scott.  I could fix it in my patch, but
my suspicion is it should be corrected in his patch.

--Matt

On Wed, 10 Nov 1999, Keith Owens wrote:
|>Missing { } in sd.c, SCSI blkdev was not being unregistered correctly.
|>
|>Index: 13.2/drivers/scsi/sd.c
|>--- 13.2/drivers/scsi/sd.c Fri, 05 Nov 1999 23:27:35 +1100 keith 
(linux-2.2/d/b/42_sd.c 1.2.1.5 644)
|>+++ 13.2(w)/drivers/scsi/sd.c Wed, 10 Nov 1999 00:03:41 +1100 keith 
(linux-2.2/d/b/42_sd.c 1.2.1.5 644)
|>@@ -2571,11 +2571,12 @@
|> 
|>     scsi_unregister_module(MODULE_SCSI_DEV, &sd_template);
|> 
|>-    for (i=0; i <= (sd_template.dev_max - 1) / SCSI_DISKS_PER_MAJOR; i++) 
|>+    for (i=0; i <= (sd_template.dev_max - 1) / SCSI_DISKS_PER_MAJOR; i++) {
|> #if defined(CONFIG_RAW)
|>      unregister_chrdev(SD_MAJOR(i),"sd"),
|> #endif
|>      unregister_blkdev(SD_MAJOR(i),"sd"); 
|>+    }
|>     
|>     sd_registered--;
|>     if( rscsi_disks != NULL )
|>


<Prev in Thread] Current Thread [Next in Thread>