net/smc: cancel event worker during device removal
PATCH v2 1/1 net/smc: cancel event worker during device removal
During IB device removal, cancel the event worker before the device structure is freed.
Fixes a4cf0443c414 ("smc: introduce SMC as an IB-client")
Reported-by [email protected]
Signed-off-by Karsten Graul <[email protected]>
Reviewed-by Ursula Braun <[email protected]>
--- net/smc/smc_ib.c | 1 + 1 file changed, 1 insertion(+)
net/smc/smc_ib.c +1 -0
@@ -582,6 +582,7 @@ static void smc_ib_remove_dev(struct ib_device *ibdev, void *client_data)smc_smcr_terminate_all (smcibdev);smc_ib_cleanup_per_ibdev (smcibdev);ib_unregister_event_handler (&smcibdev->event_handler); +cancel_work_sync (&smcibdev->port_event_work);kfree (smcibdev); }
Signature · 1 line
2.17.1
Quoted 11 lines · Karsten Graul
During IB device removal, cancel the event worker before the device structure is freed.
Fixes a4cf0443c414 ("smc: introduce SMC as an IB-client")Reported-by [email protected]Signed-off-by Karsten Graul <[email protected]>Reviewed-by Ursula Braun <[email protected]>--- net/smc/smc_ib.c | 1 + 1 file changed, 1 insertion(+)
Thanks,
Reviewed-by Leon Romanovsky <[email protected]>
David Miller
maintainerFrom: Karsten Graul <[email protected]>
Date: Tue, 10 Mar 2020 09:33:30 +0100
Quoted 7 lines
During IB device removal, cancel the event worker before the device structure is freed.
Fixes a4cf0443c414 ("smc: introduce SMC as an IB-client")Reported-by [email protected]Signed-off-by Karsten Graul <[email protected]>Reviewed-by Ursula Braun <[email protected]>
Applied and queued up for -stable, thank you.