Răsfoiți Sursa

[PATCH] ohci: don't play with IRQ regs

This is a more correct fix for the way the ohci hcd was referencing pt_regs
in the unlink paths.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
David Brownell 18 ani în urmă
părinte
comite
da66b719d1
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/usb/host/ohci-q.c

+ 1 - 1
drivers/usb/host/ohci-q.c

@@ -925,7 +925,7 @@ rescan_all:
 		/* only take off EDs that the HC isn't using, accounting for
 		/* only take off EDs that the HC isn't using, accounting for
 		 * frame counter wraps and EDs with partially retired TDs
 		 * frame counter wraps and EDs with partially retired TDs
 		 */
 		 */
-		if (likely (get_irq_regs() && HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
+		if (likely (HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
 			if (tick_before (tick, ed->tick)) {
 			if (tick_before (tick, ed->tick)) {
 skip_ed:
 skip_ed:
 				last = &ed->ed_next;
 				last = &ed->ed_next;