Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100291
b: refs/heads/master
c: d4514d1
h: refs/heads/master
i:
  100289: 6be2298
  100287: 4c3e5c4
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent c917bbb commit f65a747
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: 647d87bd1b9e7ff24f89b7d4e38c75d756018caa
refs/heads/master: d4514d1bed1c7157bcff4c81307a9e0374df257a
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/aacraid/linit.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/spinlock.h>
#include <linux/syscalls.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -667,13 +668,15 @@ static int aac_cfg_open(struct inode *inode, struct file *file)
unsigned minor_number = iminor(inode);
int err = -ENODEV;

lock_kernel(); /* BKL pushdown: nothing else protects this list */
list_for_each_entry(aac, &aac_devices, entry) {
if (aac->id == minor_number) {
file->private_data = aac;
err = 0;
break;
}
}
unlock_kernel();

return err;
}
Expand Down

0 comments on commit f65a747

Please sign in to comment.