Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100293
b: refs/heads/master
c: 46787b4
h: refs/heads/master
i:
  100291: f65a747
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 2408263 commit 9f1164e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3369c68bf9d61062585f3ebc1286220191c0f84
refs/heads/master: 46787b481be00d5443d385480d12470728406cf4
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
#include <linux/timer.h>
#include <linux/dma-mapping.h>
#include <linux/list.h>
#include <linux/smp_lock.h>

#ifdef GDTH_RTC
#include <linux/mc146818rtc.h>
Expand Down Expand Up @@ -4019,10 +4020,12 @@ static int gdth_open(struct inode *inode, struct file *filep)
{
gdth_ha_str *ha;

lock_kernel();
list_for_each_entry(ha, &gdth_instances, list) {
if (!ha->sdev)
ha->sdev = scsi_get_host_dev(ha->shost);
}
unlock_kernel();

TRACE(("gdth_open()\n"));
return 0;
Expand Down

0 comments on commit 9f1164e

Please sign in to comment.