Commit dcdaba08 authored by Selvin Xavier's avatar Selvin Xavier Committed by Doug Ledford
Browse files

RDMA/bnxt_re: Fix system crash during load/unload

During driver unload, the driver proceeds with cleanup
without waiting for the scheduled events. So the device
pointers get freed up and driver crashes when the events
are scheduled later.

Flush the bnxt_re_task work queue before starting
device removal.
Signed-off-by: default avatarSelvin Xavier <>
Signed-off-by: default avatarDoug Ledford <>
parent 3b921e3b
......@@ -1578,6 +1578,11 @@ static void __exit bnxt_re_mod_exit(void)
list_for_each_entry_safe_reverse(rdev, next, &to_be_deleted, list) {
dev_info(rdev_to_dev(rdev), "Unregistering Device");
* Flush out any scheduled tasks before destroying the
* resources
bnxt_re_ib_unreg(rdev, true);
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