Skip to content
Commit 9bc1ef64 authored by Sieng Piaw Liew's avatar Sieng Piaw Liew Committed by Jakub Kicinski
Browse files

bcm63xx_enet: fix sporadic kernel panic



In ndo_stop functions, netdev_completed_queue() is called during forced
tx reclaim, after netdev_reset_queue(). This may trigger kernel panic if
there is any tx skb left.

This patch moves netdev_reset_queue() to after tx reclaim, so BQL can
complete successfully then reset.

Signed-off-by: default avatarSieng Piaw Liew <liew.s.piaw@gmail.com>
Fixes: 4c59b0f5

 ("bcm63xx_enet: add BQL support")
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210222013530.1356-1-liew.s.piaw@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ee576c47
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