Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19183
b: refs/heads/master
c: b31f821
h: refs/heads/master
i:
  19181: d8592c8
  19179: 6dcc24c
  19175: 198c1b8
  19167: 06c6e68
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent 26f4d68 commit 70493ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 65b4fe553bf43018c06740f3d1f6caf42cf95924
refs/heads/master: b31f821c6dee6f3ecfca6b2583a6552538fb91bf
5 changes: 3 additions & 2 deletions trunk/drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,8 @@ static void ub_urb_timeout(unsigned long arg)
unsigned long flags;

spin_lock_irqsave(sc->lock, flags);
usb_unlink_urb(&sc->work_urb);
if (!ub_is_completed(&sc->work_done))
usb_unlink_urb(&sc->work_urb);
spin_unlock_irqrestore(sc->lock, flags);
}

Expand All @@ -1131,7 +1132,6 @@ static void ub_scsi_action(unsigned long _dev)
unsigned long flags;

spin_lock_irqsave(sc->lock, flags);
del_timer(&sc->work_timer);
ub_scsi_dispatch(sc);
spin_unlock_irqrestore(sc->lock, flags);
}
Expand All @@ -1155,6 +1155,7 @@ static void ub_scsi_dispatch(struct ub_dev *sc)
} else {
if (!ub_is_completed(&sc->work_done))
break;
del_timer(&sc->work_timer);
ub_scsi_urb_compl(sc, cmd);
}
}
Expand Down

0 comments on commit 70493ca

Please sign in to comment.