public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: (as84) Fix a mistake in scsi_proc.c
@ 2003-09-26 16:03 Alan Stern
  2003-09-26 16:06 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2003-09-26 16:03 UTC (permalink / raw)
  To: James Bottomley; +Cc: SCSI development list

James:

I tried sending this patch to Mike Anderson a couple of times, but never
got any response.  It's an obvious fix for a mistake in a section of code
I sent to him last spring: an error path fails to release a mutex.

If you don't see anything wrong here, please apply it.

Alan Stern


===== scsi_proc.c 1.16 vs edited =====
--- 1.16/drivers/scsi/scsi_proc.c	Thu Aug 14 18:37:32 2003
+++ edited/drivers/scsi/scsi_proc.c	Fri Aug 15 15:40:28 2003
@@ -85,12 +85,11 @@
 	down(&global_host_template_sem);
 	if (!sht->present++) {
 		sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi);
-        	if (!sht->proc_dir) {
+        	if (!sht->proc_dir)
 			printk(KERN_ERR "%s: proc_mkdir failed for %s\n",
 			       __FUNCTION__, sht->proc_name);
-			return;
-		}
-		sht->proc_dir->owner = sht->module;
+		else
+			sht->proc_dir->owner = sht->module;
 	}
 	up(&global_host_template_sem);
 }


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-26 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-26 16:03 PATCH: (as84) Fix a mistake in scsi_proc.c Alan Stern
2003-09-26 16:06 ` James Bottomley
2003-09-26 16:22   ` Alan Stern

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