2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/ethernet/marvell
Michal Schmidt 758c910781 octeon_ep: cancel queued works in probe error path
If it fails to get the devices's MAC address, octep_probe exits while
leaving the delayed work intr_poll_task queued. When the work later
runs, it's a use after free.

Move the cancelation of intr_poll_task from octep_remove into
octep_device_cleanup. This does not change anything in the octep_remove
flow, but octep_device_cleanup is called also in the octep_probe error
path, where the cancelation is needed.

Note that the cancelation of ctrl_mbox_task has to follow
intr_poll_task's, because the ctrl_mbox_task may be queued by
intr_poll_task.

Fixes: 24d4333233 ("octeon_ep: poll for control messages")
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Link: https://lore.kernel.org/r/20230810150114.107765-5-mschmidt@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-14 19:08:13 -07:00
..
mvpp2 net: mvpp2: update PCS driver to use neg_mode 2023-06-22 19:41:01 -07:00
octeon_ep octeon_ep: cancel queued works in probe error path 2023-08-14 19:08:13 -07:00
octeontx2 octeontx2-af: Fix hash extraction enable configuration 2023-07-25 10:12:26 +02:00
prestera net: marvell: prestera: fix handling IPv4 routes with nhid 2023-08-07 19:20:50 -07:00
Kconfig net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
Makefile octeon_ep: Add driver framework and device initialization 2022-04-13 12:56:32 +01:00
mv643xx_eth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
mvmdio.c net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
mvneta_bm.c
mvneta_bm.h
mvneta.c net: mvneta: fix txq_map in case of txq_number==1 2023-07-06 10:29:39 +02:00
pxa168_eth.c net: marvell: pxa168_eth: drop of_match_ptr for ID table 2023-03-15 08:02:45 +00:00
skge.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00