Commit a89e8283 authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

be2net: fix a crash seen during insmod/rmmod test

While running insmod/rmood in a loop, an unnecessary netif_stop_queue
causes the system to crash. Remove the netif_stop_queue call
and netif_start_queue in the link status update path.
Signed-off-by: default avatarAjit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a29ae23f
...@@ -312,11 +312,9 @@ void be_link_status_update(struct be_adapter *adapter, bool link_up) ...@@ -312,11 +312,9 @@ void be_link_status_update(struct be_adapter *adapter, bool link_up)
if (adapter->link_up != link_up) { if (adapter->link_up != link_up) {
adapter->link_speed = -1; adapter->link_speed = -1;
if (link_up) { if (link_up) {
netif_start_queue(netdev);
netif_carrier_on(netdev); netif_carrier_on(netdev);
printk(KERN_INFO "%s: Link up\n", netdev->name); printk(KERN_INFO "%s: Link up\n", netdev->name);
} else { } else {
netif_stop_queue(netdev);
netif_carrier_off(netdev); netif_carrier_off(netdev);
printk(KERN_INFO "%s: Link down\n", netdev->name); printk(KERN_INFO "%s: Link down\n", netdev->name);
} }
......
Markdown is supported
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