Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28316
b: refs/heads/master
c: 41fea55
h: refs/heads/master
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent 7cfba0e commit 56aa8d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4489a5712b086621a6c3f669057d2996245cd3fb
refs/heads/master: 41fea55e0382b7d59d694d8055b39aa69c793b1f
8 changes: 2 additions & 6 deletions trunk/drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1651,15 +1651,11 @@ static void ub_revalidate(struct ub_dev *sc, struct ub_lun *lun)
static int ub_bd_open(struct inode *inode, struct file *filp)
{
struct gendisk *disk = inode->i_bdev->bd_disk;
struct ub_lun *lun;
struct ub_dev *sc;
struct ub_lun *lun = disk->private_data;
struct ub_dev *sc = lun->udev;
unsigned long flags;
int rc;

if ((lun = disk->private_data) == NULL)
return -ENXIO;
sc = lun->udev;

spin_lock_irqsave(&ub_lock, flags);
if (atomic_read(&sc->poison)) {
spin_unlock_irqrestore(&ub_lock, flags);
Expand Down

0 comments on commit 56aa8d3

Please sign in to comment.