linux/drivers/net/ethernet/broadcom
Michael Chan b148bb238c bnxt_en: Fix possible crash in bnxt_fw_reset_task().
bnxt_fw_reset_task() is run from a delayed workqueue.  The current
code is not cancelling the workqueue in the driver's .remove()
method and it can potentially crash if the device is removed with
the workqueue still pending.

The fix is to clear the BNXT_STATE_IN_FW_RESET flag and then cancel
the delayed workqueue in bnxt_remove_one().  bnxt_queue_fw_reset_work()
also needs to check that this flag is set before scheduling.  This
will guarantee that no rescheduling will be done after it is cancelled.

Fixes: 230d1f0de7 ("bnxt_en: Handle firmware reset.")
Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-26 07:19:03 -07:00
..
bnx2x bnx2x: convert to new udp_tunnel_nic infra 2020-07-14 17:04:27 -07:00
bnxt bnxt_en: Fix possible crash in bnxt_fw_reset_task(). 2020-08-26 07:19:03 -07:00
genet Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-07-25 17:49:04 -07:00
b44.c
b44.h
bcm63xx_enet.c
bcm63xx_enet.h
bcmsysport.c net: systemport: Fix memleak in bcm_sysport_probe 2020-08-24 05:58:41 -07:00
bcmsysport.h
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c net: broadcom: fix a mistake about ioremap resource 2020-05-05 11:11:12 -07:00
bgmac.c bgmac: configure MTU and add support for frames beyond 8192 byte size 2020-03-27 16:07:24 -07:00
bgmac.h bgmac: configure MTU and add support for frames beyond 8192 byte size 2020-03-27 16:07:24 -07:00
bnx2.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
bnx2.h
bnx2_fw.h
cnic.c cnic: remove redundant assignment to variable ret 2020-05-08 22:46:16 -07:00
cnic.h
cnic_defs.h
cnic_if.h
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
sb1250-mac.c
tg3.c tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes 2020-06-18 20:35:04 -07:00
tg3.h tg3: Avoid the use of one-element array 2020-07-22 18:11:07 -07:00