Commit 11b2db6d authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] PATCH: (as84) Small fixup for SCSI proc code

The updated SCSI proc directory code that I sent you a few months ago has
a small mistake -- the error path fails to release a semaphore.  This
patch fixes it; please apply.
parent b34f5571
...@@ -85,12 +85,11 @@ void scsi_proc_hostdir_add(struct scsi_host_template *sht) ...@@ -85,12 +85,11 @@ void scsi_proc_hostdir_add(struct scsi_host_template *sht)
down(&global_host_template_sem); down(&global_host_template_sem);
if (!sht->present++) { if (!sht->present++) {
sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi); 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", printk(KERN_ERR "%s: proc_mkdir failed for %s\n",
__FUNCTION__, sht->proc_name); __FUNCTION__, sht->proc_name);
return; else
} sht->proc_dir->owner = sht->module;
sht->proc_dir->owner = sht->module;
} }
up(&global_host_template_sem); up(&global_host_template_sem);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment