Skip to content
Commit 9db2f1be authored by Jarek Poplawski's avatar Jarek Poplawski Committed by David S. Miller
Browse files

sky2: Fix oops in sky2_xmit_frame() after TX timeout



During TX timeout procedure dev could be awoken too early, e.g. by
sky2_complete_tx() called from sky2_down(). Then sky2_xmit_frame()
can run while buffers are freed causing an oops. This patch fixes it
by adding netif_device_present() test in sky2_tx_complete().

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=14925

With debugging by: Mike McCormack <mikem@ring3k.org>

Reported-by: default avatarBerck E. Nash <flyboy@gmail.com>
Tested-by: default avatarBerck E. Nash <flyboy@gmail.com>
Signed-off-by: default avatarJarek Poplawski <jarkao2@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa4e2e17
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