Skip to content
Commit ea91df6d authored by Jonathan Toppins's avatar Jonathan Toppins Committed by David S. Miller
Browse files

tg3: prevent scheduling while atomic splat



The problem was introduced in commit
506b0a39 ("[netdrv] tg3: APE heartbeat changes"). The bug occurs
because tp->lock spinlock is held which is obtained in tg3_start
by way of tg3_full_lock(), line 11571. The documentation for usleep_range()
specifically states it cannot be used inside a spinlock.

Fixes: 506b0a39 ("[netdrv] tg3: APE heartbeat changes")
Signed-off-by: default avatarJonathan Toppins <jtoppins@redhat.com>
Acked-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d52e5a7e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment