projects/linux·commit 2a437cd3

e1000e: fix scheduling while atomic bug

2a437cd3 · Bruce Allan <[email protected]> · 2013-05-06 22:52:47 -07:00

A scheduling while atomic bug was introduced recently (by commit
ce43a2168c59: "e1000e: cleanup USLEEP_RANGE checkpatch checks").

Revert the particular instance of usleep_range() which causes the bug.

Reported-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Bruce Allan <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
2a437cd36e627752e9cac71bfec6293f1e4e4144
Parents
51a26ae7

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/net/ethernet/intel/e1000e/e1000.hmodified+1−1View file

drivers/net/ethernet/intel/e1000e/e1000.h

View file
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h
index 82f1c84..ffbc08f 100644
--- a/drivers/net/ethernet/intel/e1000e/e1000.h
+++ b/drivers/net/ethernet/intel/e1000e/e1000.h
@@ -600,7 +600,7 @@ static inline s32 __ew32_prepare(struct e1000_hw *hw)
s32 i = E1000_ICH_FWSM_PCIM2PCI_COUNT;
while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i)
- usleep_range(50, 100);
+ udelay(50);
return i;
}