Repository navigation
Commit f2dc0d1
tg3: Do not call device_set_wakeup_enable() under spin_lock_bh
The tg3 driver calls device_set_wakeup_enable() under spin_lock_bh,
which causes a problem to happen after the recent core power
management changes, because this function can sleep now. Fix this
by moving the device_set_wakeup_enable() call out of the
spin_lock_bh-protected area.
Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 78fd9c4 commit f2dc0d1
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9948 | 9948 | | |
9949 | 9949 | | |
9950 | 9950 | | |
| 9951 | + | |
| 9952 | + | |
9951 | 9953 | | |
9952 | | - | |
| 9954 | + | |
9953 | 9955 | | |
9954 | | - | |
9955 | | - | |
| 9956 | + | |
9956 | 9957 | | |
9957 | | - | |
9958 | | - | |
9959 | 9958 | | |
9960 | 9959 | | |
| 9960 | + | |
9961 | 9961 | | |
9962 | 9962 | | |
9963 | 9963 | | |
| |||
0 commit comments